Isis 3 Programmer Reference
WarningTreeWidget.cpp
1
#include "WarningTreeWidget.h"
2
3
namespace
Isis
{
4
WarningTreeWidget::WarningTreeWidget(
QWidget
*parent) :
QTreeWidget
(parent) {
5
6
setHeaderHidden(
true
);
7
//setHeaderLabel("");
8
}
9
10
11
12
WarningTreeWidget::~WarningTreeWidget() {
13
14
}
15
16
17
void
WarningTreeWidget::showWarning(QString warningText) {
18
QStringList
columnData;
19
columnData.append(warningText);
20
21
QTreeWidgetItem
*newItem =
new
QTreeWidgetItem
(columnData);
22
invisibleRootItem()->addChild(newItem);
23
}
24
}
QWidget
QTreeWidget
QTreeWidgetItem
QStringList
Isis
This is free and unencumbered software released into the public domain.
Definition:
Apollo.h:16
src
qisis
objs
WarningTreeWidget
WarningTreeWidget.cpp