This commit is contained in:
Roman Bovsunivskiy
2010-06-18 19:02:42 +00:00
parent a588337982
commit 078862e226
2 changed files with 3 additions and 4 deletions
+1
View File
@@ -109,6 +109,7 @@ RuleSetView::RuleSetView(ProjectPanel *project, QWidget *parent):QTreeView(paren
this->setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel);
this->setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
this->header()->setStretchLastSection(false);
}
RuleSetView::~RuleSetView()
+2 -4
View File
@@ -473,7 +473,6 @@ QSize RuleSetViewDelegate::calculateCellSizeForRule(const QStyleOptionViewItem &
}
result = result.expandedTo(calculated);
return result;
}
@@ -481,10 +480,9 @@ QSize RuleSetViewDelegate::calculateCellSizeForComment(const QModelIndex & index
{
QString text = index.data(Qt::DisplayRole).value<QString>();
if (text.isNull() && text.isEmpty()) return QSize(0,0);
if (st->getClipComment()) return QSize(0,0);
QSize res = getTextSize(text,0);
if (st->getClipComment())
res.setHeight(0);
return res;
}