Definition at line 33 of file commongui.h.
QString CommonGUI::askString |
( |
const QString & |
title, |
|
|
const QString & |
label, |
|
|
bool * |
ok = NULL , |
|
|
const QString & |
defaultString = "" |
|
) |
| |
|
static |
Calls QInputDialog::getText().
Definition at line 30 of file commongui.cpp.
QList< bool > CommonGUI::listViewStandardItemsToBoolList |
( |
QListView * |
listview | ) |
|
|
static |
Reads items from a QListView with QStandardItemModel and pulls the checked state and converts to a QList<bool>.
Definition at line 37 of file commongui.cpp.
QStringList CommonGUI::listViewStandardItemsToStringList |
( |
QListView * |
listview | ) |
|
|
static |
Reads items from a QListView that uses QStandardItemModel and puts texts of these items into a list of strings.
- Parameters
-
listview | - QListView that uses QStandardItemModel. |
Definition at line 50 of file commongui.cpp.
void CommonGUI::removeSelectedRowsFromStandardItemView |
( |
QAbstractItemView * |
view, |
|
|
bool |
bSelectNextItem = false |
|
) |
| |
|
static |
Removes all selected rows from a QAbstractItemView.
- Parameters
-
view | QAbstractItemView from which items will be removed. |
bSelectNextItem | If true then next lowest item on the list is selected. Default: false. |
Definition at line 83 of file commongui.cpp.
void CommonGUI::stringListToStandardItemsListView |
( |
QListView * |
targetListview, |
|
|
const QStringList & |
stringList |
|
) |
| |
|
static |
Puts a list of strings into a QListView that uses QStandardItemModel.
- Parameters
-
targetListview | QListView that uses QStandardItemModel. This list view will be filled with data. |
stringList | Source data. |
Definition at line 127 of file commongui.cpp.
The documentation for this class was generated from the following files: