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

removed internal errors view

parent 45616d7a
......@@ -66,13 +66,8 @@ Alarm::Alarm(CumbiaPool *cu_p, QWidget *parent) : QWidget(parent)
/* silence alarm */
connect(ui->treeWidgetAlarms, SIGNAL(silence()), this, SLOT(silence()));
connect(ui->treeWidgetAlarms, SIGNAL(silence()), this, SLOT(stopSound()));
connect(ui->treeWidgetInternalErrors, SIGNAL(silence()), this, SLOT(silence()));
connect(ui->treeWidgetInternalErrors, SIGNAL(silence()), this, SLOT(stopSound()));
/* ack. Also uses QTWriter to impart StopNew command */
connect(ui->treeWidgetAlarms, SIGNAL(ack()), this, SLOT(ack()));
connect(ui->treeWidgetInternalErrors, SIGNAL(ack()), this, SLOT(ack()));
connect(ui->pBApplyFilter, SIGNAL(clicked()), this, SLOT(applyFilter()));
connect(ui->pBClearFilter, SIGNAL(clicked()), this, SLOT(clearFilter()));
......@@ -83,9 +78,7 @@ Alarm::Alarm(CumbiaPool *cu_p, QWidget *parent) : QWidget(parent)
/* message label */
ui->msgLabel->setVisible(false);
connect(ui->treeWidgetAlarms, SIGNAL(message(QString)), ui->msgLabel, SLOT(setText(QString)));
connect(ui->treeWidgetInternalErrors, SIGNAL(message(QString)), ui->msgLabelInternal, SLOT(setText(QString)));
connect(ui->treeWidgetAlarms, SIGNAL(mouseOverItem(bool)), ui->msgLabel, SLOT(setVisible(bool)));
connect(ui->treeWidgetInternalErrors, SIGNAL(mouseOverItem(bool)), ui->msgLabelInternal, SLOT(setVisible(bool)));
ui->pBClearFilter->setDisabled(true);
ui->tWGroup->sortItems(0, Qt::AscendingOrder);
......@@ -155,7 +148,6 @@ Alarm::~Alarm() {
void Alarm::refresh(const CuData &da) {
ui->treeWidgetAlarms->refresh(da);
ui->treeWidgetInternalErrors->refresh(da);
if(filtering && ui->cBDynamic->isChecked())
applyFilter();
}
......@@ -185,8 +177,6 @@ QList<QTreeWidgetItem *> Alarm::mGetSelectedItems()
/* get the tree widget that is currently visible */
if(ui->treeWidgetAlarms->isVisible())
selItems = ui->treeWidgetAlarms->selectedItems();
else if(ui->treeWidgetInternalErrors->isVisible())
selItems = ui->treeWidgetInternalErrors->selectedItems();
return selItems;
}
......@@ -249,8 +239,6 @@ void Alarm::ackAll()
/* a method to gather all items is search on wildcard */
if(ui->treeWidgetAlarms->isVisible())
items = ui->treeWidgetAlarms->findItems("*", Qt::MatchWildcard);
else
items = ui->treeWidgetInternalErrors->findItems("*", Qt::MatchWildcard);
for(int i = 0; i < items.size(); i++) {
QString dev;
QTreeWidgetItem *it = items[i];
......
......@@ -85,50 +85,6 @@
</item>
</layout>
</widget>
<widget class="QWidget" name="tabInternalErrors">
<attribute name="title">
<string>InternalErrors</string>
</attribute>
<layout class="QVBoxLayout">
<property name="spacing">
<number>6</number>
</property>
<property name="leftMargin">
<number>9</number>
</property>
<property name="topMargin">
<number>9</number>
</property>
<property name="rightMargin">
<number>9</number>
</property>
<property name="bottomMargin">
<number>9</number>
</property>
<item>
<widget class="AlarmTreeWidget" name="treeWidgetInternalErrors">
<column>
<property name="text">
<string>Date/Time</string>
</property>
</column>
</widget>
</item>
<item>
<widget class="QLabel" name="msgLabelInternal">
<property name="text">
<string>Messages for Internal Errors</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="tabTest">
<attribute name="title">
<string>Test</string>
......
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