A widget for array labeling. More...
#include <pqArrayListWidget.h>
Inherits QWidget.
Signals | |
void | widgetModified () |
fired whenever the state has been modified. More... | |
Public Member Functions | |
pqArrayListWidget (QWidget *parent=nullptr) | |
~pqArrayListWidget () override=default | |
bool | event (QEvent *e) override |
overridden to handle QDynamicPropertyChangeEvent events. More... | |
void | setHeaderLabel (const QString &label) |
Set table header label. More... | |
void | setMaximumRowCountBeforeScrolling (int size) |
Set the maximum number of visible rows. More... | |
void | setIconType (const QString &icon_type) |
Set the icon type corresponding to the arrays. More... | |
Protected Slots | |
void | updateProperty () |
Protected Member Functions | |
void | propertyChanged (const QString &pname) |
called in event() to handle change in a dynamic property with the given name. More... | |
A widget for array labeling.
pqArrayListWidget is intended to be used with 2-elements string properties. It creates a two-columns string table. First column is readonly, the second is editable.
It is useful to associate an editable label to each array, for array renaming for instance.
Definition at line 25 of file pqArrayListWidget.h.
pqArrayListWidget::pqArrayListWidget | ( | QWidget * | parent = nullptr | ) |
|
overridedefault |
|
override |
overridden to handle QDynamicPropertyChangeEvent events.
void pqArrayListWidget::setHeaderLabel | ( | const QString & | label | ) |
Set table header label.
It should match the Property name.
void pqArrayListWidget::setMaximumRowCountBeforeScrolling | ( | int | size | ) |
Set the maximum number of visible rows.
Beyond this threshold, a scrollbar is added. Forwarded to the inner pqTableView.
void pqArrayListWidget::setIconType | ( | const QString & | icon_type | ) |
Set the icon type corresponding to the arrays.
|
signal |
fired whenever the state has been modified.
|
protected |
called in event()
to handle change in a dynamic property with the given name.
|
protectedslot |