![]() |
Tome
A generic data editor for games supporting arbitrary input and output formats.
|
Allows adding, editing, re-ordering and removing list items. More...
#include <listwidget.h>
Public Member Functions | |
| ListWidget (FacetsController &facetsController, ProjectController &projectController, RecordsController &recordsController, TypesController &typesController, QWidget *parent=0) | |
| Constructs a new widget for adding, editing, re-ordering and removing list items. More... | |
| QString | getItemType () const |
| Gets the type of the list items. More... | |
| QVariantList | getItems () const |
| Gets all current list items. More... | |
| void | setItemType (const QString &itemType) |
| Sets the type of the list items. More... | |
| void | setItems (const QVariantList &items) |
| Sets all current list items. More... | |
Allows adding, editing, re-ordering and removing list items.
|
explicit |
Constructs a new widget for adding, editing, re-ordering and removing list items.
| facetsController | Controller for validating type facets. |
| projectController | Controller for creating, loading and saving projects. |
| recordsController | Controller for adding, updating and removing records. |
| typesController | Controller for adding, updating and removing custom types. |
| parent | Optional owner widget. |
| QVariantList ListWidget::getItems | ( | ) | const |
Gets all current list items.
| QString ListWidget::getItemType | ( | ) | const |
Gets the type of the list items.
| void ListWidget::setItems | ( | const QVariantList & | items | ) |
Sets all current list items.
| items | All current list items. |
| void ListWidget::setItemType | ( | const QString & | itemType | ) |
Sets the type of the list items.
| itemType | Type of the list items. |
1.8.13