|
KanoopGuiQt 1.3.0
Qt GUI utility library
|
|
Describes the saved state of a single header section. More...
#include <headerstate.h>
Inheritance diagram for HeaderState::SectionState:
Collaboration diagram for HeaderState::SectionState:Classes | |
| class | List |
| A serializable list of SectionState objects. More... | |
Public Member Functions | |
| SectionState () | |
| Default constructor — creates an invalid section state. | |
| SectionState (int section, const QString &text, int size, bool visible) | |
| Construct with explicit section attributes. | |
| virtual | ~SectionState () |
| Virtual destructor. | |
| virtual QJsonObject | serializeToJsonObject () const override |
| Serialize this section state to a QJsonObject. | |
| virtual void | deserializeFromJsonObject (const QJsonObject &jsonObject) override |
| Deserialize this section state from a QJsonObject. | |
| int | section () const |
| Return the logical section index. | |
| QString | text () const |
| Return the header label text. | |
| int | size () const |
| Return the section pixel width. | |
| bool | isVisible () const |
| Return whether the section is visible. | |
| bool | isValid () const |
| Return whether this section state has a non-empty label. | |
Describes the saved state of a single header section.
Definition at line 36 of file headerstate.h.
|
inline |
Default constructor — creates an invalid section state.
Definition at line 41 of file headerstate.h.
|
inline |
Construct with explicit section attributes.
| section | Logical section index |
| text | Header label text |
| size | Section pixel width |
| visible | Whether the section is visible |
Definition at line 51 of file headerstate.h.
|
inlinevirtual |
Virtual destructor.
Definition at line 55 of file headerstate.h.
|
inline |
Return whether this section state has a non-empty label.
Definition at line 90 of file headerstate.h.
|
inline |
Return whether the section is visible.
Definition at line 84 of file headerstate.h.
|
inline |
Return the logical section index.
Definition at line 66 of file headerstate.h.
Referenced by HeaderState::SectionState::List::findForSection().
|
inline |
|
inline |
Return the header label text.
Definition at line 72 of file headerstate.h.