23 #ifndef DOOMSEEKER_GUI_COMMONGUI_H
24 #define DOOMSEEKER_GUI_COMMONGUI_H
28 class QAbstractItemView;
39 static QString
askString(
const QString& title,
const QString& label,
40 bool* ok = NULL,
const QString& defaultString =
"");
55 static void removeSelectedRowsFromQTableWidget(QTableWidget *table);
67 QAbstractItemView* view,
bool bSelectNextItem =
false);
79 const QStringList& stringList);
static QStringList listViewStandardItemsToStringList(QListView *listview)
Reads items from a QListView that uses QStandardItemModel and puts texts of these items into a list o...
static void stringListToStandardItemsListView(QListView *targetListview, const QStringList &stringList)
Puts a list of strings into a QListView that uses QStandardItemModel.
static void removeSelectedRowsFromStandardItemView(QAbstractItemView *view, bool bSelectNextItem=false)
Removes all selected rows from a QAbstractItemView.
static QList< bool > listViewStandardItemsToBoolList(QListView *listview)
static QString askString(const QString &title, const QString &label, bool *ok=NULL, const QString &defaultString="")
Calls QInputDialog::getText().