CalendarSupport::CellItem Class
The CellItem class. More...
| Header: | #include <CalendarSupport/CellItem> |
| CMake: | find_package(KPim6CalendarSupport REQUIRED)target_link_libraries(mytarget PRIVATE KPim6::CalendarSupport) |
Public Functions
| CellItem() | |
| virtual | ~CellItem() |
| virtual QString | label() const |
| virtual bool | overlaps(CalendarSupport::CellItem *other) const = 0 |
| void | setSubCell(int v) |
| void | setSubCells(int v) |
| int | subCell() const |
| int | subCells() const |
Static Public Members
| QList<CalendarSupport::CellItem *> | placeItem(const QList<CalendarSupport::CellItem *> &cells, CalendarSupport::CellItem *placeItem) |
Detailed Description
Member Function Documentation
[constexpr noexcept default] CellItem::CellItem()
[virtual constexpr noexcept default] CellItem::~CellItem()
Destroys the instance of CellItem. This destructor is virtual.
[virtual] QString CellItem::label() const
[pure virtual] bool CellItem::overlaps(CalendarSupport::CellItem *other) const
[static] QList<CalendarSupport::CellItem *> CellItem::placeItem(const QList<CalendarSupport::CellItem *> &cells, CalendarSupport::CellItem *placeItem)
Place item placeItem into stripe containing items cells in a way that items don't overlap. cells The list of other cell items to be laid out parallel to the placeItem. placeItem The item to be laid out.
Returns Placed items
void CellItem::setSubCell(int v)
See also subCell().
void CellItem::setSubCells(int v)
See also subCells().
int CellItem::subCell() const
See also setSubCell().
int CellItem::subCells() const
See also setSubCells().