MessageList::Core::Theme::Row

MessageList::Core::Theme::Row Class Reference

#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.

Definition at line 412 of file theme.h.

Member Function Documentation

void Theme::Row::addLeftItem ( Theme::ContentItem item)

Adds a left aligned item to this row.

The row takes the ownership of the ContentItem pointer.

Definition at line 376 of file theme.cpp.

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...

Definition at line 388 of file theme.cpp.

bool Theme::Row::containsTextItems ( ) const

Returns true if this row contains text items.

This is useful if you want to know if the column should just get its minimum allowable space or it should get more.

Definition at line 426 of file theme.cpp.

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.

Definition at line 393 of file theme.cpp.

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.

Definition at line 412 of file theme.cpp.

const QList< Theme::ContentItem * > & Theme::Row::leftItems ( ) const

Returns the list of left aligned items for this row.

Definition at line 516 of file theme.cpp.

bool Theme::Row::load ( QDataStream stream,
int  themeVersion 
)

Handles row loading (used by Theme::Column::load())

Definition at line 521 of file theme.cpp.

void Theme::Row::removeAllLeftItems ( )

Removes all the left items from this row: the items are deleted.

Definition at line 369 of file theme.cpp.

void Theme::Row::removeAllRightItems ( )

Removes all the right items from this row.

The items are deleted.

Definition at line 381 of file theme.cpp.

void Theme::Row::removeLeftItem ( Theme::ContentItem item)

Removes the specified left aligned content item from this row.

The item is NOT deleted.

Definition at line 402 of file theme.cpp.

void Theme::Row::removeRightItem ( Theme::ContentItem item)

Removes the specified right aligned content item from this row.

The item is NOT deleted.

Definition at line 421 of file theme.cpp.

const QList< Theme::ContentItem * > & Theme::Row::rightItems ( ) const

Returns the list of right aligned items for this row.

Definition at line 407 of file theme.cpp.

void Theme::Row::save ( QDataStream stream) const

Handles row saving (used by Theme::Column::save())

Definition at line 441 of file theme.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Aug 12 2020 23:12:59 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.