diff options
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/preferences.cpp | 7 | ||||
-rw-r--r-- | qt-ui/preferences.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/qt-ui/preferences.cpp b/qt-ui/preferences.cpp index e188cdba7..e5ddc558d 100644 --- a/qt-ui/preferences.cpp +++ b/qt-ui/preferences.cpp @@ -1,6 +1,7 @@ #include "preferences.h" #include <QSettings> #include <QDebug> +#include <QFileDialog> PreferencesDialog* PreferencesDialog::instance() { @@ -193,3 +194,9 @@ void PreferencesDialog::buttonClicked(QAbstractButton* button) #undef SB + +void PreferencesDialog::on_chooseFile_clicked() +{ + QFileInfo fi(system_default_filename()); + ui.defaultfilename->setText(QFileDialog::getOpenFileName(this, tr("Open Default Log File"), fi.absolutePath(), tr("XML Files (*.xml)"))); +} diff --git a/qt-ui/preferences.h b/qt-ui/preferences.h index 86f200934..c9590db07 100644 --- a/qt-ui/preferences.h +++ b/qt-ui/preferences.h @@ -18,6 +18,7 @@ signals: void settingsChanged(); public slots: void buttonClicked(QAbstractButton* button); + void on_chooseFile_clicked(); void syncSettings(); void restorePrefs(); void rememberPrefs(); |