Commit e8a7accf authored by Giacomo Strangolino's avatar Giacomo Strangolino
Browse files

only alarm view shows handler error entries

parent 43fdee67
...@@ -32,7 +32,7 @@ AlarmTreeWidget::AlarmTreeWidget(QWidget *parent) : QTreeWidget(parent) ...@@ -32,7 +32,7 @@ AlarmTreeWidget::AlarmTreeWidget(QWidget *parent) : QTreeWidget(parent)
// setSortingEnabled(true); // setSortingEnabled(true);
header()->setSectionResizeMode( QHeaderView::ResizeToContents); header()->setSectionResizeMode( QHeaderView::ResizeToContents);
_filter_enabled = false; _filter_enabled = false;
m_type = AlarmType;
setMouseTracking(true); setMouseTracking(true);
connect(this, SIGNAL(itemEntered(QTreeWidgetItem*,int)), this, SLOT(slotItemEntered(QTreeWidgetItem*,int))); connect(this, SIGNAL(itemEntered(QTreeWidgetItem*,int)), this, SLOT(slotItemEntered(QTreeWidgetItem*,int)));
} }
...@@ -104,6 +104,10 @@ void AlarmTreeWidget::applyFilter(AlarmFilter f) ...@@ -104,6 +104,10 @@ void AlarmTreeWidget::applyFilter(AlarmFilter f)
} }
void AlarmTreeWidget::setType(AlarmTreeWidget::Type t) {
m_type = t;
}
void AlarmTreeWidget::removeFilter() void AlarmTreeWidget::removeFilter()
{ {
QList<QTreeWidgetItem *> items; QList<QTreeWidgetItem *> 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