Unity 8
|
#include <plugins/Dash/verticaljournal.h>
Inherits AbstractDashView.
Signals | |
void | columnWidthChanged () |
Public Member Functions | |
qreal | columnWidth () const |
void | setColumnWidth (qreal columnWidth) |
Properties | |
qreal | columnWidth |
Friends | |
class | VerticalJournalTest |
A vertical journal is a view that creates delegates based on a model and layouts them in columns following a top-left most position rule.
The number of columns is calculated using the width of the view itself, the columnWidth (i.e. the width of each individual delegate) and the columnSpacing between columns.
All delegates are forced to columnWidth if they don't have it.
The first nColumns items are layouted at row 0 from column 0 to column nColumns-1 in order. After that every new item is positioned in the column which provides the free topmost position as possible. If more than one column tie in providing the topmost free position the leftmost column will be used.
Example:
+--—+ +--—+ +--—+ | | | 2 | | | | | | | | | | 1 | +--—+ | 3 | | | +--—+ | | | | | | +--—+ +--—+ | 4 | +--—+ +--—+ | | | 5 | | 6 | +--—+ | | | | +--—+ +--—+
Definition at line 54 of file verticaljournal.h.