QAdvanced Item View  0.4
The QAIV (Qt Advanced Item Views) library provides GUI and utility classes extending the capabilities of the Qt item views.
 All Classes Functions Variables Enumerations Enumerator Properties Groups Pages
Public Member Functions | List of all members
QConditionalDecorationDialog Class Reference

The QConditionalDecorationDialog class provides a dialog that allow users to modify conditional decorations. More...

#include <qconditionaldecorationdialog.h>

Inheritance diagram for QConditionalDecorationDialog:

Public Member Functions

 QConditionalDecorationDialog (const QModelIndex &index, QWidget *parent=0)
 
 ~QConditionalDecorationDialog ()
 
QVariantMap properties () const
 
void setProperties (const QModelIndex &index)
 

Detailed Description

The QConditionalDecorationDialog class provides a dialog that allow users to modify conditional decorations.

if (d->exec()){
QAbstractItemModel* m = (QAbstractItemModel*)index.model();
m->setData(index, d->properties(), QConditionalDecorationProxyModel::ConditionalDecorationRole);
}
delete d;
qconditionaldecorationdialog01.png
Example: using the QConditionalDecorationDialog
Clicking on the select value tool button
opens the select value dialog to select a value for the condition being build.
qconditionaldecorationdialog02.png
QConditionalDecorationDialog: Select Value

Constructor & Destructor Documentation

QConditionalDecorationDialog::QConditionalDecorationDialog ( const QModelIndex &  index,
QWidget *  parent = 0 
)
explicit

Constructs a conditional decoration dialog for the given index and with the given parent.

QConditionalDecorationDialog::~QConditionalDecorationDialog ( )

Destroys the QConditionalDecorationDialog.

Member Function Documentation

QVariantMap QConditionalDecorationDialog::properties ( ) const

Returns the properties.


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