MessageList::Core::Theme::Row

Search for usage in LXR

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.

Constructor & Destructor Documentation

◆ Row()

Theme::Row::Row ( const Row & src)
explicit

Definition at line 347 of file theme.cpp.

◆ ~Row()

Theme::Row::~Row ( )

Definition at line 358 of file theme.cpp.

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.

Definition at line 371 of file theme.cpp.

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

Definition at line 383 of file theme.cpp.

◆ containsTextItems()

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 421 of file theme.cpp.

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

Definition at line 388 of file theme.cpp.

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

Definition at line 407 of file theme.cpp.

◆ leftItems()

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

Returns the list of left aligned items for this row.

Definition at line 507 of file theme.cpp.

◆ load()

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

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

Definition at line 512 of file theme.cpp.

◆ removeAllLeftItems()

void Theme::Row::removeAllLeftItems ( )

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

Definition at line 364 of file theme.cpp.

◆ removeAllRightItems()

void Theme::Row::removeAllRightItems ( )

Removes all the right items from this row.

The items are deleted.

Definition at line 376 of file theme.cpp.

◆ removeLeftItem()

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 397 of file theme.cpp.

◆ removeRightItem()

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 416 of file theme.cpp.

◆ rightItems()

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

Returns the list of right aligned items for this row.

Definition at line 402 of file theme.cpp.

◆ save()

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

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

Definition at line 436 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-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:12:44 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.