Unity 8
OrganicGrid Class Reference

#include <plugins/Dash/organicgrid.h>

Inherits AbstractDashView.

Signals

void smallDelegateSizeChanged ()
 
void bigDelegateSizeChanged ()
 

Public Member Functions

QSizeF smallDelegateSize () const
 
void setSmallDelegateSize (const QSizeF size)
 
QSizeF bigDelegateSize () const
 
void setBigDelegateSize (const QSizeF size)
 

Properties

QSizeF smallDelegateSize
 
QSizeF bigDelegateSize
 

Friends

class OrganicGridTest
 

Detailed Description

An Organic Grid is is a view that creates delegates based on a model and layouts them in groups of six items (called module).

In each module there are 4 items that are forced to the small delegate size and two that are forced to the big delegate size.

Example:

+—+ +—+ +--—+ | 1 | | 2 | | | +—+ +—+ | 5 | +--—+ | | | | +--—+ | 3 | +—+ +—+ | | | 4 | | 6 | +--—+ +—+ +—+

Modules are positioned one after the other in a grid like fashion, i.e.

+—+ +—+ | 1 | | 2 | +—+ +—+ +—+ +—+ | 3 | | 4 | +—+ +—+

Definition at line 49 of file organicgrid.h.


The documentation for this class was generated from the following files: