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
- enum EditAction
- typedef [...] EditActions
Functions
- ItemViewDialog(ItemViewDialog::EditActions edit, QAbstractItemModel *model, QAbstractItemView *view = [...], QWidget *parent = [...])
- float get_column_margin_factor() const
- ItemViewDialog::EditActions get_edit_actions() const
- QAbstractItemModel * get_model() const
- bool get_resize_on_expand() const
- QAbstractItemView * get_view() const
- void set_column_margin_factor(float cmf)
- void set_edit_actions(ItemViewDialog::EditActions edit)
- void set_resize_on_expand(bool roe)
Protected function
- virtual QSize sizeHint() const
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
Identifier | Description |
---|---|
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
Get additionnal column width factor
ItemViewDialog::EditActions get_edit_actions() const
No documentation available
QAbstractItemModel * get_model() const
Return pointer to model
Get current resize on expand state
QAbstractItemView * get_view() const
Return pointer to view
Set additionnal column width factor
void set_edit_actions(ItemViewDialog::EditActions edit)
No documentation available
Set keys column resize to content on node expand
virtual QSize sizeHint() const
This member access is protected.