summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/mediummount/mediumwidget.cc28
1 files changed, 15 insertions, 13 deletions
diff --git a/noncore/settings/mediummount/mediumwidget.cc b/noncore/settings/mediummount/mediumwidget.cc
index f9cac8b..9fc608b 100644
--- a/noncore/settings/mediummount/mediumwidget.cc
+++ b/noncore/settings/mediummount/mediumwidget.cc
@@ -9,8 +9,9 @@
9#include <qlineedit.h> 9#include <qlineedit.h>
10#include <qpixmap.h> 10#include <qpixmap.h>
11#include <qpushbutton.h> 11#include <qpushbutton.h>
12#include <qvbox.h> 12#include <qvbox.h>
13#include <qwhatsthis.h>
13 14
14 15
15#include <qpe/config.h> 16#include <qpe/config.h>
16#include <qpe/qpeapplication.h> 17#include <qpe/qpeapplication.h>
@@ -21,11 +22,11 @@
21 22
22using namespace MediumMountSetting; 23using namespace MediumMountSetting;
23 24
24MediumMountWidget::MediumMountWidget(const QString &path, 25MediumMountWidget::MediumMountWidget(const QString &path,
25 const QPixmap &pix, 26 const QPixmap &pix,
26 QWidget *parent, 27 QWidget *parent,
27 const char *name ) 28 const char *name )
28 : QWidget( parent, name ) 29 : QWidget( parent, name )
29{ 30{
30 if(parent == 0){ 31 if(parent == 0){
31 resize(QApplication::desktop()->width(), QApplication::desktop()->height() ); 32 resize(QApplication::desktop()->width(), QApplication::desktop()->height() );
@@ -53,12 +54,13 @@ void MediumMountWidget::initGUI()
53 m_infoBox->setSpacing( 4 ); 54 m_infoBox->setSpacing( 4 );
54 m_label = new QLabel(m_infoBox ); 55 m_label = new QLabel(m_infoBox );
55 m_desc = new QLabel(m_infoBox ); 56 m_desc = new QLabel(m_infoBox );
56 m_desc->setTextFormat( Qt::RichText ); 57 m_desc->setTextFormat( Qt::RichText );
57 m_desc->setText("Configure this medium. The changes will" 58 QWhatsThis::add( this, tr("Configure this medium. The changes will"
58 " go into effect when the application get's" 59 " go into effect when the application get's"
59 " closed. To update the Document Tab you need" 60 " closed. To update the Document Tab you need"
60 " to removeand insert this medium." ); 61 " to removeand insert this medium."));
62 m_desc->setText("" );
61 m_box->addWidget( m_infoBox ); // add the widget to the layout 63 m_box->addWidget( m_infoBox ); // add the widget to the layout
62 64
63 65
64 // groupbox 66 // groupbox
@@ -68,10 +70,10 @@ void MediumMountWidget::initGUI()
68 70
69 71
70 72
71 QSpacerItem *item2 = new QSpacerItem(5, 8, 73 QSpacerItem *item2 = new QSpacerItem(5, 8,
72 QSizePolicy::Fixed, 74 QSizePolicy::Fixed,
73 QSizePolicy::Fixed); 75 QSizePolicy::Fixed);
74 m_box->addItem( item2 ); 76 m_box->addItem( item2 );
75 77
76 m_audio = new QCheckBox( tr("Audio"), m_group ); 78 m_audio = new QCheckBox( tr("Audio"), m_group );
77 m_all = new QCheckBox( tr("All") , m_group ); 79 m_all = new QCheckBox( tr("All") , m_group );
@@ -79,9 +81,9 @@ void MediumMountWidget::initGUI()
79 m_text = new QCheckBox( tr("Text") , m_group ); 81 m_text = new QCheckBox( tr("Text") , m_group );
80 m_video = new QCheckBox( tr("Video"), m_group ); 82 m_video = new QCheckBox( tr("Video"), m_group );
81 83
82 QSpacerItem *iti1b = new QSpacerItem(2, 10, QSizePolicy::Fixed, 84 QSpacerItem *iti1b = new QSpacerItem(2, 10, QSizePolicy::Fixed,
83 QSizePolicy::Fixed ); 85 QSizePolicy::Fixed );
84 m_checks->addItem( iti1b, 0, 0 ); 86 m_checks->addItem( iti1b, 0, 0 );
85 87
86 m_checks->addWidget(m_audio, 1, 0 ); 88 m_checks->addWidget(m_audio, 1, 0 );
87 m_checks->addWidget(m_image, 2, 0 ); 89 m_checks->addWidget(m_image, 2, 0 );
@@ -94,9 +96,9 @@ void MediumMountWidget::initGUI()
94 m_checks->addColSpacing(1, 2 ); 96 m_checks->addColSpacing(1, 2 );
95 m_checks->setColStretch(1, -2 ); 97 m_checks->setColStretch(1, -2 );
96 98
97 connect(m_all, SIGNAL(stateChanged(int) ), 99 connect(m_all, SIGNAL(stateChanged(int) ),
98 this, SLOT(slotStateChanged() ) ); 100 this, SLOT(slotStateChanged() ) );
99 101
100 m_box->addWidget( m_group ); 102 m_box->addWidget( m_group );
101 103
102 // label 104 // label
@@ -116,10 +118,10 @@ void MediumMountWidget::initGUI()
116 118
117 m_box->addWidget( m_always ); 119 m_box->addWidget( m_always );
118 120
119 QSpacerItem *item = new QSpacerItem(5, 50, 121 QSpacerItem *item = new QSpacerItem(5, 50,
120 QSizePolicy::Fixed, 122 QSizePolicy::Fixed,
121 QSizePolicy::Expanding ); 123 QSizePolicy::Expanding );
122 m_box->addItem(item ); 124 m_box->addItem(item );
123} 125}
124 126
125void MediumMountWidget::readConfig( ) 127void MediumMountWidget::readConfig( )