Skip to content

Commit

Permalink
ticket:5050 Use Qt::ElideRight for value column. Other columns use Qt…
Browse files Browse the repository at this point in the history
…::ElideMiddle
  • Loading branch information
adeas31 committed Jan 30, 2019
1 parent c8fa402 commit bef7e4f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions OMEdit/OMEditGUI/Modeling/ItemDelegate.cpp
Expand Up @@ -154,6 +154,10 @@ void ItemDelegate::paint(QPainter *painter, const QStyleOptionViewItem &option,
painter->drawLine(option.rect.bottomLeft(), option.rect.bottomRight());
painter->restore();
}
/* ticket:5050 Use Qt::ElideRight for value column. Other columns use Qt::ElideMiddle. */
if (parent() && (qobject_cast<VariablesTreeView*>(parent())) && index.column() == 1) {
opt.textElideMode = Qt::ElideRight;
}
/* if rich text flag is set */
if (mDrawRichText) {
QAbstractTextDocumentLayout::PaintContext ctx;
Expand Down

0 comments on commit bef7e4f

Please sign in to comment.