fixes #2346 increase width of column "Comment" by 10 pixels

This commit is contained in:
Vadim Kurland
2011-04-13 20:45:08 -07:00
parent 1a9eda04a9
commit 41e1255101
+2 -2
View File
@@ -480,10 +480,10 @@ QSize RuleSetViewDelegate::calculateCellSizeForComment(const QModelIndex & index
{
QString text = index.data(Qt::DisplayRole).value<QString>();
if (text.isNull() && text.isEmpty()) return QSize(0,0);
QSize res = getTextSize(text,0);
QSize res = getTextSize(text, 0);
if (st->getClipComment())
res.setHeight(0);
return res;
return res + QSize(10, 0);
}
QSize RuleSetViewDelegate::calculateCellSizeForObject(const QModelIndex & index) const