|
swift
|
Entity with order attribute (can be manually ordered in views). More...
#include <orderable.h>
Public Types | |
| enum | ColumnIndex { IndexOrder = CPropertyIndexRef::GlobalIndexIOrderable , IndexOrderString } |
| Properties by index. More... | |
Public Member Functions | |
| int | getOrder () const |
| Order. | |
| QString | getOrderAsString () const |
| Order as string. | |
| void | setOrder (int order) |
| Set order. | |
| bool | hasValidOrder () const |
| Valid order set? | |
Static Public Member Functions | |
| static bool | isAnyOrderIndex (int index) |
| Any order index. | |
Protected Member Functions | |
| IOrderable ()=default | |
| Constructor. | |
| IOrderable (int order) | |
| Constructor. | |
| QVariant | propertyByIndex (CPropertyIndexRef index) const |
| Property by index. | |
| void | setPropertyByIndex (CPropertyIndexRef index, const QVariant &variant) |
| Set property by index. | |
| int | comparePropertyByIndex (CPropertyIndexRef index, const IOrderable &compareValue) const |
| Compare for index. | |
Static Protected Member Functions | |
| static bool | canHandleIndex (CPropertyIndexRef index) |
| Can given index be handled. | |
Protected Attributes | |
| int | m_order = -1 |
| order number | |
Entity with order attribute (can be manually ordered in views).
Definition at line 18 of file orderable.h.
Properties by index.
Definition at line 22 of file orderable.h.
|
protected |
Constructor.
Definition at line 16 of file orderable.cpp.
|
staticprotected |
Can given index be handled.
Definition at line 34 of file orderable.cpp.
|
protected |
Compare for index.
Definition at line 77 of file orderable.cpp.
|
inline |
Order.
Definition at line 29 of file orderable.h.
| QString swift::misc::IOrderable::getOrderAsString | ( | ) | const |
Order as string.
Definition at line 18 of file orderable.cpp.
| bool swift::misc::IOrderable::hasValidOrder | ( | ) | const |
Valid order set?
Definition at line 27 of file orderable.cpp.
|
static |
Any order index.
Definition at line 29 of file orderable.cpp.
|
protected |
Property by index.
Definition at line 44 of file orderable.cpp.
|
inline |
Set order.
Definition at line 35 of file orderable.h.
|
protected |
Set property by index.
Definition at line 61 of file orderable.cpp.
|
protected |
order number
Definition at line 62 of file orderable.h.