forked from qt-creator/qt-creator
Debugging output
This commit is contained in:
@@ -239,8 +239,6 @@ void BuildStepsPage::removeBuildStep()
|
||||
QAction *action = qobject_cast<QAction *>(sender());
|
||||
if (action) {
|
||||
int pos = m_removeButton->menu()->actions().indexOf(action);
|
||||
qDebug()<<"pos:"<<pos;
|
||||
|
||||
const QList<BuildStep *> &steps = m_clean ? m_pro->cleanSteps() : m_pro->buildSteps();
|
||||
if (steps.at(pos)->immutable())
|
||||
return;
|
||||
|
||||
@@ -108,8 +108,6 @@ QVariant DependenciesModel::data(const QModelIndex &index, int role) const
|
||||
|
||||
bool DependenciesModel::setData(const QModelIndex &index, const QVariant &value, int role)
|
||||
{
|
||||
qDebug() << index << value << role << value.toBool();
|
||||
|
||||
if (role == Qt::CheckStateRole) {
|
||||
Project *p = m_projects.at(index.row());
|
||||
const Qt::CheckState c = static_cast<Qt::CheckState>(value.toInt());
|
||||
|
||||
@@ -147,7 +147,6 @@ ProjectView::~ProjectView()
|
||||
|
||||
QSize ProjectView::sizeHint() const
|
||||
{
|
||||
qDebug()<<"sizeHint()"<<m_sizeHint;
|
||||
return m_sizeHint;
|
||||
}
|
||||
|
||||
@@ -159,12 +158,8 @@ void ProjectView::updateSizeHint()
|
||||
}
|
||||
|
||||
int heightOffset = size().height() - viewport()->height();
|
||||
qDebug()<<"heightOffset"<<heightOffset;
|
||||
|
||||
qDebug()<<"updating sizehint";
|
||||
int heightPerRow = sizeHintForRow(0);
|
||||
if (heightPerRow == -1) {
|
||||
qDebug()<<"No row height";
|
||||
heightPerRow = 30;
|
||||
}
|
||||
int rows = qMin(qMax(model()->rowCount(), 2), 6);
|
||||
|
||||
Reference in New Issue
Block a user