forked from qt-creator/qt-creator
Merge remote branch 'origin/2.1'
Conflicts:
share/qtcreator/static.pro
src/plugins/qmljseditor/qmljsoutlinetreeview.cpp
src/plugins/projectexplorer/outputwindow.cpp
This commit is contained in:
@@ -76,8 +76,16 @@ void AnnotatedItemDelegate::paint(QPainter *painter,
|
||||
style->drawPrimitive(QStyle::PE_PanelItemViewItem, &opt, painter, opt.widget);
|
||||
style->drawControl(QStyle::CE_ItemViewItem, &opt, painter, opt.widget);
|
||||
|
||||
const QString &annotation = index.data(m_annotationRole).toString();
|
||||
QString annotation = index.data(m_annotationRole).toString();
|
||||
if (!annotation.isEmpty()) {
|
||||
|
||||
int newlinePos = annotation.indexOf(QLatin1Char('\n'));
|
||||
if (newlinePos != -1) {
|
||||
// print first line with '...' at end
|
||||
const QChar ellipsisChar(0x2026);
|
||||
annotation = annotation.left(newlinePos) + ellipsisChar;
|
||||
}
|
||||
|
||||
QPalette disabled(opt.palette);
|
||||
disabled.setCurrentColorGroup(QPalette::Disabled);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user