Commit 20a85cdf authored by Utkarsh Ayachit's avatar Utkarsh Ayachit Committed by Kitware Robot
Browse files

Merge topic 'output-widget'

d672269c

 Make columns in pqOutputWidget non-editable.
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: Cory Quammen's avatarCory Quammen <cory.quammen@kitware.com>
Merge-request: !2575
parents 2cd7ea62 d672269c
Pipeline #108799 failed with stage
in 0 seconds
......@@ -180,6 +180,13 @@ class pqOutputWidget::pqInternals
static const int COLUMN_COUNT = 1;
static const int COLUMN_DATA = 0;
static QStandardItem* newEmptyItem()
{
auto item = new QStandardItem();
item->setFlags(item->flags() ^ Qt::ItemIsEditable);
return item;
}
public:
Ui::OutputWidget Ui;
QPointer<QStandardItemModel> Model;
......@@ -263,11 +270,11 @@ public:
messageItem->setForeground(this->foregroundColor(type));
QList<QStandardItem*> items;
items << messageItem << new QStandardItem();
items << messageItem << this->newEmptyItem();
summaryItem->appendRow(items);
items.clear();
items << summaryItem << new QStandardItem();
items << summaryItem << this->newEmptyItem();
rootItem->appendRow(items);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment