WARNING: USE THIS SOFTWARE AT YOUR OWN RISK! THIS IS EXPERIMENTAL SOFTWARE NOT INTENDED FOR PRODUCTION USE! Zuble is currently an early stage prototype. As such Zuble is minimally tested and inherently unstable. It is provided for experimental, development, and demonstration purposes only. | Zuble QML Types | Zuble C++ Classes | Zuble Overview |
Zuble
0.1
Zuble Framework C++/QML extension API
|
Defines a column in a ZTableView. More...
#include <ZTableColumn.h>
Public Member Functions | |
ZTableColumn (QObject *parent=0) | |
QString | getRole () |
void | putRole (const QString &role) |
QString | getLabel () |
void | putLabel (const QString &label) |
int | getWidth () |
void | putWidth (int width) |
int | getType () |
void | putType (int width) |
bool | getVisible () |
void | putVisible (bool visible) |
Static Public Member Functions | |
static void | registerType () |
Registers ZTableColumn as a QML type. More... | |
Protected Attributes | |
QString | m_role |
QString | m_label |
int | m_width |
int | m_type |
bool | m_visible |
Properties | |
QString | role |
Role name of the data to display in this column. More... | |
QString | label |
Text to display in the column header. More... | |
int | width |
int | type |
bool | visible |
Defines a column in a ZTableView.
Definition at line 38 of file ZTableColumn.h.
|
explicit |
Definition at line 31 of file ZTableColumn.cpp.
QString Zbl::ZTableColumn::getLabel | ( | ) |
Definition at line 57 of file ZTableColumn.cpp.
QString Zbl::ZTableColumn::getRole | ( | ) |
Definition at line 47 of file ZTableColumn.cpp.
int Zbl::ZTableColumn::getType | ( | ) |
Definition at line 77 of file ZTableColumn.cpp.
bool Zbl::ZTableColumn::getVisible | ( | ) |
Definition at line 87 of file ZTableColumn.cpp.
int Zbl::ZTableColumn::getWidth | ( | ) |
Definition at line 67 of file ZTableColumn.cpp.
void Zbl::ZTableColumn::putLabel | ( | const QString & | label | ) |
Definition at line 62 of file ZTableColumn.cpp.
void Zbl::ZTableColumn::putRole | ( | const QString & | role | ) |
Definition at line 52 of file ZTableColumn.cpp.
void Zbl::ZTableColumn::putType | ( | int | width | ) |
Definition at line 82 of file ZTableColumn.cpp.
void Zbl::ZTableColumn::putVisible | ( | bool | visible | ) |
Definition at line 92 of file ZTableColumn.cpp.
void Zbl::ZTableColumn::putWidth | ( | int | width | ) |
Definition at line 72 of file ZTableColumn.cpp.
|
static |
Registers ZTableColumn as a QML type.
Definition at line 40 of file ZTableColumn.cpp.
Referenced by Zbl::Zblcore::registerTypes().
|
protected |
Definition at line 104 of file ZTableColumn.h.
Referenced by getLabel(), and putLabel().
|
protected |
Definition at line 103 of file ZTableColumn.h.
|
protected |
Definition at line 106 of file ZTableColumn.h.
|
protected |
Definition at line 107 of file ZTableColumn.h.
Referenced by getVisible(), and putVisible().
|
protected |
Definition at line 105 of file ZTableColumn.h.
Referenced by getWidth(), and putWidth().
|
readwrite |
Text to display in the column header.
Definition at line 56 of file ZTableColumn.h.
Referenced by putLabel().
|
readwrite |
Role name of the data to display in this column.
Roles are defined by the data model
Definition at line 50 of file ZTableColumn.h.
Referenced by putRole().
|
readwrite |
Type of the column (user defined)
Definition at line 68 of file ZTableColumn.h.
|
readwrite |
When true the column in visible, when false the column is hidden
Definition at line 74 of file ZTableColumn.h.
Referenced by putVisible().
|
readwrite |
Width of the column in pixels
Definition at line 62 of file ZTableColumn.h.
Referenced by putType(), and putWidth().
Zuble documentation copyright © 2019 Bob Dinitto. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Zuble is a derivative work of Qt version 5. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.