Applets
LayoutWidget Class Reference
A Layout for the expanded group. More...
#include <layoutwidget.h>

Public Slots | |
void | update () |
Signals | |
void | sizeHintChanged (Qt::SizeHint) |
Public Member Functions | |
void | addTaskItem (AbstractTaskItem *) |
bool | insert (int index, AbstractTaskItem *item) |
int | insertionIndexAt (const QPointF &pos) |
LayoutWidget (TaskGroupItem *parent, Tasks *applet) | |
int | maximumRows () |
int | numberOfColumns () |
int | numberOfRows () |
int | preferredColumns () |
void | removeTaskItem (AbstractTaskItem *) |
void | setForceRows (bool) |
void | setMaximumRows (int) |
int | size () |
~LayoutWidget () |
Detailed Description
A Layout for the expanded group.Definition at line 46 of file layoutwidget.h.
Constructor & Destructor Documentation
LayoutWidget::LayoutWidget | ( | TaskGroupItem * | parent, | |
Tasks * | applet | |||
) |
Definition at line 21 of file layoutwidget.cpp.
LayoutWidget::~LayoutWidget | ( | ) |
Definition at line 39 of file layoutwidget.cpp.
Member Function Documentation
void LayoutWidget::addTaskItem | ( | AbstractTaskItem * | item | ) |
insert the item on the index in TaskGroupItem::getMemberList
Definition at line 62 of file layoutwidget.cpp.
bool LayoutWidget::insert | ( | int | index, | |
AbstractTaskItem * | item | |||
) |
int LayoutWidget::insertionIndexAt | ( | const QPointF & | pos | ) |
int LayoutWidget::maximumRows | ( | ) |
Returns the preferred number of rows based on the user settings but limited by calculation to honor AbstractGroupableItem::basicPreferredSize().
Definition at line 178 of file layoutwidget.cpp.
int LayoutWidget::numberOfColumns | ( | ) |
returns columnCount or rowCount depending on m_applet->formFactor()
Definition at line 471 of file layoutwidget.cpp.
int LayoutWidget::numberOfRows | ( | ) |
returns columnCount or rowCount depending on m_applet->formFactor()
Definition at line 462 of file layoutwidget.cpp.
int LayoutWidget::preferredColumns | ( | ) |
Returns the preferred number of columns calculated on base of AbstractGroupableItem::basicPreferredSize().
Definition at line 202 of file layoutwidget.cpp.
void LayoutWidget::removeTaskItem | ( | AbstractTaskItem * | item | ) |
Definition at line 92 of file layoutwidget.cpp.
void LayoutWidget::setForceRows | ( | bool | forceRows | ) |
force the layout to use maximumRows setting and fill rows before columns
Definition at line 389 of file layoutwidget.cpp.
void LayoutWidget::setMaximumRows | ( | int | rows | ) |
int LayoutWidget::size | ( | ) |
the size including expanded groups
size including expanded groups
Definition at line 148 of file layoutwidget.cpp.
void LayoutWidget::sizeHintChanged | ( | Qt::SizeHint | ) | [signal] |
void LayoutWidget::update | ( | ) | [slot] |
Definition at line 140 of file layoutwidget.cpp.
The documentation for this class was generated from the following files: