A better QTreeWidget for TOPPView, which supports header context menu and conveniently adding/getting headers names.
More...
#include <OpenMS/VISUAL/TreeView.h>
A better QTreeWidget for TOPPView, which supports header context menu and conveniently adding/getting headers names.
◆ TreeView()
◆ ~TreeView()
◆ getHeaderName()
QString getHeaderName |
( |
const int |
header_column | ) |
const |
get the displayed name of the header in column with index header_column
- Exceptions
-
◆ getHeaderNames()
QStringList getHeaderNames |
( |
const WidgetHeader |
which | ) |
const |
Obtain header names, either from all, or only the visible columns.
- Parameters
-
which | With or without invisible columns? |
- Returns
- List of header names
◆ headerContextMenu_
void headerContextMenu_ |
( |
const QPoint & |
pos | ) |
|
|
privateslot |
Display header context menu; allows to show/hide columns.
◆ hideColumns()
void hideColumns |
( |
const QStringList & |
header_names | ) |
|
hides columns with the given names
- Exceptions
-
◆ setHeaders()
void setHeaders |
( |
const QStringList & |
headers | ) |
|
sets the visible headers (and the number of columns)