Diffstat (limited to 'noncore/settings/mediummount/mediumglobal.cc') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/mediummount/mediumglobal.cc | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/noncore/settings/mediummount/mediumglobal.cc b/noncore/settings/mediummount/mediumglobal.cc index fa4171c..46d3343 100644 --- a/noncore/settings/mediummount/mediumglobal.cc +++ b/noncore/settings/mediummount/mediumglobal.cc | |||
@@ -16,7 +16,7 @@ | |||
16 | using namespace MediumMountSetting; | 16 | using namespace MediumMountSetting; |
17 | 17 | ||
18 | MediumGlobalWidget::MediumGlobalWidget(QWidget *wid, const char *name ) | 18 | MediumGlobalWidget::MediumGlobalWidget(QWidget *wid, const char *name ) |
19 | : QWidget( wid, name ) | 19 | : QWidget( wid, name, WStyle_ContextHelp ) |
20 | { | 20 | { |
21 | m_config = 0; | 21 | m_config = 0; |
22 | initGUI(); | 22 | initGUI(); |
@@ -26,8 +26,8 @@ MediumGlobalWidget::MediumGlobalWidget(QWidget *wid, const char *name ) | |||
26 | void MediumGlobalWidget::initGUI() | 26 | void MediumGlobalWidget::initGUI() |
27 | { | 27 | { |
28 | m_layout = new QVBoxLayout(this ); | 28 | m_layout = new QVBoxLayout(this ); |
29 | m_layout->setMargin( 10 ); | 29 | // m_layout->setMargin( 10 ); |
30 | m_layout->setSpacing( 10 ); | 30 | // m_layout->setSpacing( 10 ); |
31 | 31 | ||
32 | 32 | ||
33 | m_label = new QLabel( this ); | 33 | m_label = new QLabel( this ); |
@@ -39,7 +39,7 @@ void MediumGlobalWidget::initGUI() | |||
39 | "if Opie should scan for Documents globally or on a " | 39 | "if Opie should scan for Documents globally or on a " |
40 | "per medium level. You're also able to reconfigure " | 40 | "per medium level. You're also able to reconfigure " |
41 | "each medium.") ); | 41 | "each medium.") ); |
42 | 42 | ||
43 | m_layout->addWidget( m_label ); | 43 | m_layout->addWidget( m_label ); |
44 | 44 | ||
45 | m_check = new QCheckBox( tr("Enable medium checking" ), this ); | 45 | m_check = new QCheckBox( tr("Enable medium checking" ), this ); |
@@ -61,11 +61,11 @@ void MediumGlobalWidget::initGUI() | |||
61 | 61 | ||
62 | m_global = new QGroupBox( tr("Which media files"), m_frame ); | 62 | m_global = new QGroupBox( tr("Which media files"), m_frame ); |
63 | m_frameLay = new QGridLayout(m_global, 4, 3 ); | 63 | m_frameLay = new QGridLayout(m_global, 4, 3 ); |
64 | m_frameLay->setMargin( 12 ); | 64 | m_frameLay->setMargin( 6 ); |
65 | 65 | ||
66 | QSpacerItem *item2 = new QSpacerItem( 5, 8, | 66 | QSpacerItem *item2 = new QSpacerItem( 5, 8, |
67 | QSizePolicy::Fixed, | 67 | QSizePolicy::Fixed, |
68 | QSizePolicy::Fixed ); | 68 | QSizePolicy::Fixed ); |
69 | m_audio = new QCheckBox( tr("Audio"), m_global ); | 69 | m_audio = new QCheckBox( tr("Audio"), m_global ); |
70 | m_all = new QCheckBox( tr("All") , m_global ); | 70 | m_all = new QCheckBox( tr("All") , m_global ); |
71 | m_image = new QCheckBox( tr("Image"), m_global ); | 71 | m_image = new QCheckBox( tr("Image"), m_global ); |
@@ -84,11 +84,11 @@ void MediumGlobalWidget::initGUI() | |||
84 | m_frameLay->addWidget( m_text, 1, 2 ); | 84 | m_frameLay->addWidget( m_text, 1, 2 ); |
85 | m_frameLay->addWidget( m_video, 2, 2 ); | 85 | m_frameLay->addWidget( m_video, 2, 2 ); |
86 | 86 | ||
87 | m_frameLay->addRowSpacing( 0, 8 ); | 87 | // m_frameLay->addRowSpacing( 0, 8 ); |
88 | m_frameLay->addColSpacing( 1, 2 ); | 88 | // m_frameLay->addColSpacing( 1, 2 ); |
89 | 89 | ||
90 | m_box->addWidget( m_global ); | 90 | m_box->addWidget( m_global ); |
91 | 91 | ||
92 | 92 | ||
93 | m_layout->addWidget( m_frame ); | 93 | m_layout->addWidget( m_frame ); |
94 | 94 | ||
@@ -140,7 +140,6 @@ void MediumGlobalWidget::writeConfig() | |||
140 | } | 140 | } |
141 | MediumGlobalWidget::~MediumGlobalWidget() | 141 | MediumGlobalWidget::~MediumGlobalWidget() |
142 | { | 142 | { |
143 | writeConfig(); | ||
144 | delete m_config; | 143 | delete m_config; |
145 | } | 144 | } |
146 | void MediumGlobalWidget::slotGlobalChanged() | 145 | void MediumGlobalWidget::slotGlobalChanged() |