MessageList::Core::Theme::Row
#include <theme.h>
Public Member Functions | |
Row (const Row &src) | |
void | addLeftItem (ContentItem *item) |
void | addRightItem (ContentItem *item) |
bool | containsTextItems () const |
void | insertLeftItem (int idx, ContentItem *item) |
void | insertRightItem (int idx, ContentItem *item) |
const QList< ContentItem * > & | leftItems () const |
bool | load (QDataStream &stream, int themeVersion) |
void | removeAllLeftItems () |
void | removeAllRightItems () |
void | removeLeftItem (ContentItem *item) |
void | removeRightItem (ContentItem *item) |
const QList< ContentItem * > & | rightItems () const |
void | save (QDataStream &stream) const |
Detailed Description
The Row class defines a row of items inside a Column.
The Row has a list of left aligned and a list of right aligned ContentItems.
Constructor & Destructor Documentation
◆ Row()
◆ ~Row()
Member Function Documentation
◆ addLeftItem()
void Theme::Row::addLeftItem | ( | Theme::ContentItem * | item | ) |
Adds a left aligned item to this row.
The row takes the ownership of the ContentItem pointer.
◆ addRightItem()
void Theme::Row::addRightItem | ( | Theme::ContentItem * | item | ) |
Adds a right aligned item to this row.
The row takes the ownership of the ContentItem pointer. Please note that the first right aligned item will start at the right edge, the second right aligned item will come after it etc...
◆ containsTextItems()
|
nodiscard |
◆ insertLeftItem()
void Theme::Row::insertLeftItem | ( | int | idx, |
ContentItem * | item ) |
Adds a left aligned item at the specified position in this row.
The row takes the ownership of the ContentItem pointer.
◆ insertRightItem()
void Theme::Row::insertRightItem | ( | int | idx, |
ContentItem * | item ) |
Adds a right aligned item at the specified position in this row.
The row takes the ownership of the ContentItem pointer. Remember that right item positions go from right to left.
◆ leftItems()
const QList< Theme::ContentItem * > & Theme::Row::leftItems | ( | ) | const |
◆ load()
bool Theme::Row::load | ( | QDataStream & | stream, |
int | themeVersion ) |
Handles row loading (used by Theme::Column::load())
◆ removeAllLeftItems()
void Theme::Row::removeAllLeftItems | ( | ) |
◆ removeAllRightItems()
void Theme::Row::removeAllRightItems | ( | ) |
◆ removeLeftItem()
void Theme::Row::removeLeftItem | ( | Theme::ContentItem * | item | ) |
◆ removeRightItem()
void Theme::Row::removeRightItem | ( | Theme::ContentItem * | item | ) |
◆ rightItems()
const QList< Theme::ContentItem * > & Theme::Row::rightItems | ( | ) | const |
◆ save()
void Theme::Row::save | ( | QDataStream & | stream | ) | const |
Handles row saving (used by Theme::Column::save())
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Mar 21 2025 11:50:06 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.