23 #ifndef DOOMSEEKER_GUI_COMMONGUI_H 24 #define DOOMSEEKER_GUI_COMMONGUI_H 28 class QAbstractItemView;
40 static QString
askString(
const QString &title,
const QString &label,
41 bool *ok =
nullptr,
const QString &defaultString =
"");
56 static void removeSelectedRowsFromQTableWidget(QTableWidget *table);
68 QAbstractItemView *view,
bool bSelectNextItem =
false);
80 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=nullptr, const QString &defaultString="")
Calls QInputDialog::getText().