classPiiTableModelControlWidget
#include <PiiTableModelControlWidget.h>
A widget with Add, Delete, Move up, and Move down buttons for controlling a PiiTableModel.
Inherits QWidget
Description
Properties
|
QBoxLayout::Direction
|
Layout direction. |
|
bool
|
Show/hide move buttons. |
Constructors and destructor
|
Create a new PiiTableModelControlWidget with the given parent widget. |
|
|
Destroy the widget. |
Public member functions
|
void
|
Connect the control widget to the given |
|
QBoxLayout::Direction
|
( )
|
|
bool
|
|
|
void
|
(
|
|
void
|
(
|
Property details
-
QBoxLayout::Direction direction
[read, write]Layout direction.
By default, control buttons are laid out vertically, from top to bottom.
-
bool moveButtonsVisible
[read, write]Show/hide move buttons.
The buttons are show by default. If you do not want the user to be able to move items in a PiiTableModel, set this flag to
false.
Function details
-
PiiTableModelControlWidget
Create a new PiiTableModelControlWidget with the given parent widget.
-
~PiiTableModelControlWidget
()Destroy the widget.
-
void connect
Connect the control widget to the given
model.The Delete and Move buttons of a connected widget will be automatically enabled and disabled. Pushing the buttons will modify the model.
-
QBoxLayout::Direction direction
() -
bool moveButtonsVisible
() -
void setDirection
(- QBoxLayout::Direction direction
-
void setMoveButtonsVisible
(- bool moveButtonsVisible
Add a note
Not a single note added yet. Be the first, add yours.