|
| static QString | askString (const QString &title, const QString &label, bool *ok=NULL, const QString &defaultString="") |
| | Calls QInputDialog::getText(). More...
|
| |
| static QList< bool > | listViewStandardItemsToBoolList (QListView *listview) |
| |
| static QStringList | listViewStandardItemsToStringList (QListView *listview) |
| | Reads items from a QListView that uses QStandardItemModel and puts texts of these items into a list of strings. More...
|
| |
|
static void | removeSelectedRowsFromQTableWidget (QTableWidget *table) |
| |
| static void | removeSelectedRowsFromStandardItemView (QAbstractItemView *view, bool bSelectNextItem=false) |
| | Removes all selected rows from a QAbstractItemView. More...
|
| |
| static void | setCurrentText (QComboBox *box, const QString &text) |
| | Qt4 compliant implementation of Qt5's QComboBox::setCurrentText(). More...
|
| |
| static void | stringListToStandardItemsListView (QListView *targetListview, const QStringList &stringList) |
| | Puts a list of strings into a QListView that uses QStandardItemModel. More...
|
| |
Definition at line 34 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 31 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 38 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 51 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 84 of file commongui.cpp.
| void CommonGUI::setCurrentText |
( |
QComboBox * |
box, |
|
|
const QString & |
text |
|
) |
| |
|
static |
Qt4 compliant implementation of Qt5's QComboBox::setCurrentText().
Definition at line 128 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 151 of file commongui.cpp.
The documentation for this class was generated from the following files: