Debugging output

This commit is contained in:
dt
2009-08-06 16:16:56 +02:00
parent 2948651fa9
commit 5146d23169
3 changed files with 0 additions and 9 deletions

View File

@@ -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;

View File

@@ -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());

View File

@@ -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);