-rw-r--r-- | noncore/settings/mediummount/mainwindow.cc | 4 | ||||
-rw-r--r-- | noncore/settings/mediummount/mainwindow.h | 2 | ||||
-rw-r--r-- | noncore/settings/mediummount/mediumglobal.cc | 31 |
3 files changed, 20 insertions, 17 deletions
diff --git a/noncore/settings/mediummount/mainwindow.cc b/noncore/settings/mediummount/mainwindow.cc index 88f7c61..cf8ad6c 100644 --- a/noncore/settings/mediummount/mainwindow.cc +++ b/noncore/settings/mediummount/mainwindow.cc @@ -14,6 +14,6 @@ using namespace MediumMountSetting; -MainWindow::MainWindow( QWidget *parent, const char *name ) - : QMainWindow( parent, name ) +MainWindow::MainWindow( QWidget *parent, const char *name, WFlags ) + : QMainWindow( parent, name, WStyle_ContextHelp ) { diff --git a/noncore/settings/mediummount/mainwindow.h b/noncore/settings/mediummount/mainwindow.h index 1e60e12..ce54674 100644 --- a/noncore/settings/mediummount/mainwindow.h +++ b/noncore/settings/mediummount/mainwindow.h @@ -16,5 +16,5 @@ namespace MediumMountSetting { Q_OBJECT public: - MainWindow(QWidget *parent = 0, const char *name = 0 ); + MainWindow(QWidget *parent = 0, const char *name = 0 , WFlags = 0); ~MainWindow(); diff --git a/noncore/settings/mediummount/mediumglobal.cc b/noncore/settings/mediummount/mediumglobal.cc index 921fcd1..c1ad415 100644 --- a/noncore/settings/mediummount/mediumglobal.cc +++ b/noncore/settings/mediummount/mediumglobal.cc @@ -8,4 +8,5 @@ #include <qframe.h> #include <qgroupbox.h> +#include <qwhatsthis.h> #include <qpe/config.h> @@ -32,16 +33,18 @@ void MediumGlobalWidget::initGUI() m_label = new QLabel( this ); m_label->setTextFormat( Qt::RichText ); - m_label->setText( tr("If a medium gets inserted into this device Opie " - "tries to search the medium for Dcouments. On " - "large mediums this can take some time. You can choose " - "if Opie should scan for Documents globally or on a " - "per medium level. You're also able to reconfigure " - "each medium." - ) ); + m_label->setText( tr("") ); + QWhatsThis::add( this, ("If a medium gets inserted into this device Opie " + "tries to search the medium for Dcouments. On " + "large mediums this can take some time. You can choose " + "if Opie should scan for Documents globally or on a " + "per medium level. You're also able to reconfigure " + "each medium." + ) ); + m_layout->addWidget( m_label ); m_check = new QCheckBox( tr("Enable medium checking" ), this ); connect( m_check, SIGNAL(stateChanged(int) ), - this, SLOT(slotEnableChecking() ) ); + this, SLOT(slotEnableChecking() ) ); m_layout->addWidget(m_check ); @@ -54,5 +57,5 @@ void MediumGlobalWidget::initGUI() m_useglobal = new QCheckBox( tr("Use global settings"), m_frame ); connect( m_useglobal, SIGNAL( stateChanged(int) ), - this, SLOT( slotGlobalChanged() ) ); + this, SLOT( slotGlobalChanged() ) ); m_box->addWidget( m_useglobal ); @@ -63,6 +66,6 @@ void MediumGlobalWidget::initGUI() QSpacerItem *item2 = new QSpacerItem( 5, 8, - QSizePolicy::Fixed, - QSizePolicy::Fixed ); + QSizePolicy::Fixed, + QSizePolicy::Fixed ); m_audio = new QCheckBox( tr("Audio"), m_global ); m_all = new QCheckBox( tr("All") , m_global ); @@ -72,5 +75,5 @@ void MediumGlobalWidget::initGUI() connect(m_all, SIGNAL(stateChanged(int) ), - this, SLOT(slotAllChanged() ) ); + this, SLOT(slotAllChanged() ) ); m_frameLay->addItem( item2, 0, 0 ); @@ -92,6 +95,6 @@ void MediumGlobalWidget::initGUI() QSpacerItem *item1 = new QSpacerItem( 1, 24, - QSizePolicy::Fixed, - QSizePolicy::Expanding ); + QSizePolicy::Fixed, + QSizePolicy::Expanding ); m_layout->addItem( item1 ); } |