A widget to select labels. More...
#include <labelwidget.h>
Public Slots | |
QStringList | getLabels () const |
void | selectLabels (QStringList select) |
void | manageLabels () |
void | updateLabels () |
Public Member Functions | |
LabelWidget (QWidget *parent=0, bool showManageLabelsBtn=true) | |
~LabelWidget () |
A widget to select labels.
Use this widget to select labels. It contains a slot to preselect labels an a button to show the LabelManagementDialog.
LabelWidget::LabelWidget | ( | QWidget * | parent = 0 , |
|
bool | showManageLabelsBtn = true | |||
) |
The constructor.
Constructs the LabelWidget which is a child of parent.
parent | The parent of this LabelWidget. | |
showManageLabelsBtn | Indicates if the button to manage the labels is visible. |
LabelWidget::~LabelWidget | ( | ) |
The destructor.
Destroys the object.
QStringList LabelWidget::getLabels | ( | ) | const [slot] |
Get a QStringList with all the selected labels.
void LabelWidget::manageLabels | ( | ) | [slot] |
Open the LabelManagementDialog.
void LabelWidget::selectLabels | ( | QStringList | select | ) | [slot] |
Select all labels which the QStringList contains.
select | The labels which will be selected. |
void LabelWidget::updateLabels | ( | ) | [slot] |
Reload the the tree with the labels to show the modification made in the LabelManagementDialog.