diff options
| author | vovanec <vovanec@90c681e8-e032-0410-971d-27865f9a5e38> | 2007-07-24 16:05:25 +0000 |
|---|---|---|
| committer | vovanec <vovanec@90c681e8-e032-0410-971d-27865f9a5e38> | 2007-07-24 16:05:25 +0000 |
| commit | 6f1f9ca43a8773cdfb5e3a7d72fda79c4a442016 (patch) | |
| tree | e48d4fc57cf018e8f33442521a3f08682ff3437e /src/configdialog.cpp | |
| parent | e838956a1dee86e490701e72c1f04ced7a4fdda6 (diff) | |
| download | qmmp-6f1f9ca43a8773cdfb5e3a7d72fda79c4a442016.tar.gz qmmp-6f1f9ca43a8773cdfb5e3a7d72fda79c4a442016.tar.bz2 qmmp-6f1f9ca43a8773cdfb5e3a7d72fda79c4a442016.zip | |
added filedialog interface, fixed plugin paths
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@38 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/configdialog.cpp')
| -rw-r--r-- | src/configdialog.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/configdialog.cpp b/src/configdialog.cpp index e91139efc..bc62a2508 100644 --- a/src/configdialog.cpp +++ b/src/configdialog.cpp @@ -32,6 +32,7 @@ #include <outputfactory.h> #include "skin.h" +#include "filedialog.h" #include "pluginitem.h" #include "configdialog.h" @@ -49,6 +50,7 @@ ConfigDialog::ConfigDialog ( QWidget *parent ) connect ( this, SIGNAL(accepted()),SLOT(saveSettings())); ui.listWidget->setIconSize ( QSize ( 69,29 ) ); m_skin = Skin::getPointer(); + ui.fileDialogComboBox->insertItems(0,FileDialog::registeredFactories()); readSettings(); loadSkins(); loadPluginsInfo(); @@ -86,6 +88,15 @@ void ConfigDialog::readSettings() ui.hideToTrayRadioButton->setChecked(settings.value("Tray/hide_on_close", FALSE).toBool()); ui.closeGroupBox->setEnabled(ui.trayCheckBox->isChecked()); + + QString f_dialogName = + settings.value("FileDialog",QtFileDialogFactory::QtFileDialogFactoryName).toString(); + + int ind = FileDialog::registeredFactories().indexOf(f_dialogName); + if(ind != -1) + ui.fileDialogComboBox->setCurrentIndex(ind); + else + ui.fileDialogComboBox->setCurrentIndex(0); } void ConfigDialog::changePage ( QListWidgetItem *current, QListWidgetItem *previous ) @@ -329,6 +340,7 @@ void ConfigDialog::saveSettings() settings.setValue ("Tray/message_delay", ui.messageDelaySpinBox->value()); settings.setValue ("Tray/show_tooltip", ui.toolTipCheckBox->isChecked()); settings.setValue ("Tray/hide_on_close",ui.hideToTrayRadioButton->isChecked()); + settings.setValue ("FileDialog", ui.fileDialogComboBox->currentText()); } |
