ItemViewDialog class reference
[Model/View module]

Declaration  

#include <QtLua/ItemViewDialog>

namespace QtLua {
class ItemViewDialog;
};

This class is a member of the QtLua namespace.

Description  

This class provides a generic dialog to view and edit data in a model.

Some edit buttons can be made available depending on the value of the edit_actions attribute.

Some lua functions can be used to create and invoke these dialogs from lua script.

See also TableTreeModel class and TableGridModel class.

Members  

Types  

Functions  

Protected function  

Members detail  

ItemViewDialog(ItemViewDialog::EditActions edit, QAbstractItemModel *model, QAbstractItemView *view = 0, QWidget *parent = 0)  

Create a table dialog.

Parameters list:

  • table: lua table to expose
  • type: dialog type
  • model: mvc model to use, a default model is created if NULL.
  • attr: model attributes, control display and edit options

enum EditAction  

IdentifierDescription
EditData
EditDataOnNewRow
EditAddChild
EditInsertRow
EditInsertRowAfter
EditAddRow
EditRemoveRow
EditRowAll
EditInsertColumn
EditInsertColumnAfter
EditAddColumn
EditRemoveColumn
EditColumnAll

See also ItemViewDialog::EditActions typedef.

typedef ItemViewDialog::EditAction EditActions  

No documentation available

float get_column_margin_factor() const  

Get additionnal column width factor

ItemViewDialog::EditActions get_edit_actions() const  

No documentation available

QAbstractItemModel * get_model() const  

Return pointer to model

bool get_resize_on_expand() const  

Get current resize on expand state

QAbstractItemView * get_view() const  

Return pointer to view

void set_column_margin_factor(float cmf)  

Set additionnal column width factor

void set_edit_actions(ItemViewDialog::EditActions edit)  

No documentation available

void set_resize_on_expand(bool roe)  

Set keys column resize to content on node expand

virtual QSize sizeHint() const  

This member access is protected.

Valid XHTML 1.0 StrictGenerated by diaxen on Sat Mar 30 15:29:54 2013 using MkDoc