mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-09-17 18:39:07 +02:00
Fixed #1520
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user