aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General/hal/halfactory.cpp
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2009-01-29 20:40:40 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2009-01-29 20:40:40 +0000
commit2781102535509f7104d52f581dd036910b6f4a42 (patch)
treec643a9efe8eebd8939e78c93b7274f9fe39b7f95 /src/plugins/General/hal/halfactory.cpp
parent4e629ae0af2f8bea1fb061af5ebb679a773a57fe (diff)
downloadqmmp-2781102535509f7104d52f581dd036910b6f4a42.tar.gz
qmmp-2781102535509f7104d52f581dd036910b6f4a42.tar.bz2
qmmp-2781102535509f7104d52f581dd036910b6f4a42.zip
some hal plugin improvements, updated Russian translation
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@764 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/plugins/General/hal/halfactory.cpp')
-rw-r--r--src/plugins/General/hal/halfactory.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/plugins/General/hal/halfactory.cpp b/src/plugins/General/hal/halfactory.cpp
index e0b777d43..513f8642a 100644
--- a/src/plugins/General/hal/halfactory.cpp
+++ b/src/plugins/General/hal/halfactory.cpp
@@ -20,6 +20,7 @@
#include <QtGui>
+#include "settingsdialog.h"
#include "halplugin.h"
#include "halfactory.h"
@@ -28,8 +29,8 @@ const GeneralProperties HalFactory::properties() const
GeneralProperties properties;
properties.name = tr("HAL Plugin");
properties.shortName = "hal";
- properties.hasAbout = FALSE;
- properties.hasSettings = FALSE;
+ properties.hasAbout = TRUE;
+ properties.hasSettings = TRUE;
properties.visibilityControl = FALSE;
return properties;
}
@@ -39,17 +40,18 @@ General *HalFactory::create(QObject *parent)
return new HalPlugin(parent);
}
-QDialog *HalFactory::createConfigDialog(QWidget *)
+QDialog *HalFactory::createConfigDialog(QWidget *parent)
{
- return 0;
+ return new SettingsDialog(parent);
}
void HalFactory::showAbout(QWidget *parent)
{
- /*QMessageBox::about (parent, tr("About Hal Plugin"),
- tr("Qmmp Hal Plugin")+"\n"+
- tr("Writen by: Ilya Kotov <forkotov02@hotmail.ru>"));*/
- //TODO based on solid
+ QMessageBox::about (parent, tr("About HAL Plugin"),
+ tr("Qmmp HAL Plugin") + "\n" +
+ tr("This plugin provides removable devices detection using HAL") + "\n" +
+ tr("Writen by: Ilya Kotov <forkotov02@hotmail.ru>") + "\n" +
+ tr("Based on Solid (KDE hardware library)"));
}
QTranslator *HalFactory::createTranslator(QObject *parent)