author | llornkcor <llornkcor> | 2002-10-26 14:55:38 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-10-26 14:55:38 (UTC) |
commit | 49f3af452f5011adb3a9042dc001a1d93da3c2ba (patch) (unidiff) | |
tree | 3d094974dfea25454f982d1ffa26f74962ca4431 | |
parent | a4a1722ba3a2874adef57e0c04093814c0dc4f8f (diff) | |
download | opie-49f3af452f5011adb3a9042dc001a1d93da3c2ba.zip opie-49f3af452f5011adb3a9042dc001a1d93da3c2ba.tar.gz opie-49f3af452f5011adb3a9042dc001a1d93da3c2ba.tar.bz2 |
moved large text to context help, so controls fit into window. may need more context help for individual controls
-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 | 5 |
3 files changed, 7 insertions, 4 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 | |||
@@ -10,14 +10,14 @@ | |||
10 | 10 | ||
11 | #include "mainwindow.h" | 11 | #include "mainwindow.h" |
12 | 12 | ||
13 | using namespace MediumMountSetting; | 13 | using namespace MediumMountSetting; |
14 | 14 | ||
15 | 15 | ||
16 | MainWindow::MainWindow( QWidget *parent, const char *name ) | 16 | MainWindow::MainWindow( QWidget *parent, const char *name, WFlags ) |
17 | : QMainWindow( parent, name ) | 17 | : QMainWindow( parent, name, WStyle_ContextHelp ) |
18 | 18 | ||
19 | { | 19 | { |
20 | // m_lay = new QVBoxLayout( this ); | 20 | // m_lay = new QVBoxLayout( this ); |
21 | m_tab = new QTabWidget( this ); | 21 | m_tab = new QTabWidget( this ); |
22 | setCentralWidget( m_tab ); | 22 | setCentralWidget( m_tab ); |
23 | init(); | 23 | init(); |
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 | |||
@@ -12,13 +12,13 @@ class QTabWidget; | |||
12 | namespace MediumMountSetting { | 12 | namespace MediumMountSetting { |
13 | class MediumMountWidget; | 13 | class MediumMountWidget; |
14 | class MediumGlobalWidget; | 14 | class MediumGlobalWidget; |
15 | class MainWindow : public QMainWindow { | 15 | class MainWindow : public QMainWindow { |
16 | Q_OBJECT | 16 | Q_OBJECT |
17 | public: | 17 | public: |
18 | MainWindow(QWidget *parent = 0, const char *name = 0 ); | 18 | MainWindow(QWidget *parent = 0, const char *name = 0 , WFlags = 0); |
19 | ~MainWindow(); | 19 | ~MainWindow(); |
20 | 20 | ||
21 | private slots: | 21 | private slots: |
22 | void slotGlobalChanged(int ); | 22 | void slotGlobalChanged(int ); |
23 | void slotCheckingChanged(int ); | 23 | void slotCheckingChanged(int ); |
24 | private: | 24 | private: |
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 | |||
@@ -4,12 +4,13 @@ | |||
4 | #include <qcheckbox.h> | 4 | #include <qcheckbox.h> |
5 | #include <qlabel.h> | 5 | #include <qlabel.h> |
6 | #include <qabstractlayout.h> // spacer item | 6 | #include <qabstractlayout.h> // spacer item |
7 | #include <qlayout.h> | 7 | #include <qlayout.h> |
8 | #include <qframe.h> | 8 | #include <qframe.h> |
9 | #include <qgroupbox.h> | 9 | #include <qgroupbox.h> |
10 | #include <qwhatsthis.h> | ||
10 | 11 | ||
11 | #include <qpe/config.h> | 12 | #include <qpe/config.h> |
12 | 13 | ||
13 | #include "mediumglobal.h" | 14 | #include "mediumglobal.h" |
14 | 15 | ||
15 | using namespace MediumMountSetting; | 16 | using namespace MediumMountSetting; |
@@ -28,19 +29,21 @@ void MediumGlobalWidget::initGUI() | |||
28 | m_layout->setMargin( 10 ); | 29 | m_layout->setMargin( 10 ); |
29 | m_layout->setSpacing( 10 ); | 30 | m_layout->setSpacing( 10 ); |
30 | 31 | ||
31 | 32 | ||
32 | m_label = new QLabel( this ); | 33 | m_label = new QLabel( this ); |
33 | m_label->setTextFormat( Qt::RichText ); | 34 | m_label->setTextFormat( Qt::RichText ); |
34 | m_label->setText( tr("If a medium gets inserted into this device Opie " | 35 | m_label->setText( tr("") ); |
36 | QWhatsThis::add( this, ("If a medium gets inserted into this device Opie " | ||
35 | "tries to search the medium for Dcouments. On " | 37 | "tries to search the medium for Dcouments. On " |
36 | "large mediums this can take some time. You can choose " | 38 | "large mediums this can take some time. You can choose " |
37 | "if Opie should scan for Documents globally or on a " | 39 | "if Opie should scan for Documents globally or on a " |
38 | "per medium level. You're also able to reconfigure " | 40 | "per medium level. You're also able to reconfigure " |
39 | "each medium." | 41 | "each medium." |
40 | ) ); | 42 | ) ); |
43 | |||
41 | m_layout->addWidget( m_label ); | 44 | m_layout->addWidget( m_label ); |
42 | 45 | ||
43 | m_check = new QCheckBox( tr("Enable medium checking" ), this ); | 46 | m_check = new QCheckBox( tr("Enable medium checking" ), this ); |
44 | connect( m_check, SIGNAL(stateChanged(int) ), | 47 | connect( m_check, SIGNAL(stateChanged(int) ), |
45 | this, SLOT(slotEnableChecking() ) ); | 48 | this, SLOT(slotEnableChecking() ) ); |
46 | m_layout->addWidget(m_check ); | 49 | m_layout->addWidget(m_check ); |