Changeset View
Changeset View
Standalone View
Standalone View
src/qt/guiutil.cpp
Show First 20 Lines • Show All 260 Lines • ▼ Show 20 Lines | |||||
QList<QModelIndex> getEntryData(QAbstractItemView *view, int column) { | QList<QModelIndex> getEntryData(QAbstractItemView *view, int column) { | ||||
if (!view || !view->selectionModel()) { | if (!view || !view->selectionModel()) { | ||||
return QList<QModelIndex>(); | return QList<QModelIndex>(); | ||||
} | } | ||||
return view->selectionModel()->selectedRows(column); | return view->selectionModel()->selectedRows(column); | ||||
} | } | ||||
QString getDefaultDataDirectory() { | |||||
return boostPathToQString(GetDefaultDataDir()); | |||||
} | |||||
QString getSaveFileName(QWidget *parent, const QString &caption, | QString getSaveFileName(QWidget *parent, const QString &caption, | ||||
const QString &dir, const QString &filter, | const QString &dir, const QString &filter, | ||||
QString *selectedSuffixOut) { | QString *selectedSuffixOut) { | ||||
QString selectedFilter; | QString selectedFilter; | ||||
QString myDir; | QString myDir; | ||||
// Default to user documents location | // Default to user documents location | ||||
if (dir.isEmpty()) { | if (dir.isEmpty()) { | ||||
myDir = | myDir = | ||||
▲ Show 20 Lines • Show All 638 Lines • Show Last 20 Lines |