summaryrefslogtreecommitdiff
path: root/noncore/settings/mediummount/mediumwidget.cc
authorkergoth <kergoth>2003-08-09 17:14:54 (UTC)
committer kergoth <kergoth>2003-08-09 17:14:54 (UTC)
commita7e015198a8c5ad3b6e144a9032b059086253e00 (patch) (unidiff)
treeb712b6f11310d88744fe393a92b3160b741a7efe /noncore/settings/mediummount/mediumwidget.cc
parentbeba0e73306815337bf04dee39502233595e9739 (diff)
downloadopie-a7e015198a8c5ad3b6e144a9032b059086253e00.zip
opie-a7e015198a8c5ad3b6e144a9032b059086253e00.tar.gz
opie-a7e015198a8c5ad3b6e144a9032b059086253e00.tar.bz2
Merge from BRANCH_1_0
Diffstat (limited to 'noncore/settings/mediummount/mediumwidget.cc') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/mediummount/mediumwidget.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/settings/mediummount/mediumwidget.cc b/noncore/settings/mediummount/mediumwidget.cc
index eadf502..981e1dd 100644
--- a/noncore/settings/mediummount/mediumwidget.cc
+++ b/noncore/settings/mediummount/mediumwidget.cc
@@ -1,48 +1,50 @@
1 1
2 2
3#include <qcheckbox.h> 3#include <qcheckbox.h>
4#include <qgroupbox.h> 4#include <qgroupbox.h>
5#include <qhbox.h> 5#include <qhbox.h>
6#include <qlabel.h> 6#include <qlabel.h>
7#include <qabstractlayout.h> 7#include <qabstractlayout.h>
8#include <qlayout.h> 8#include <qlayout.h>
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#include <qwhatsthis.h>
14 14
15 15
16#include <qpe/config.h> 16#include <qpe/config.h>
17#include <qpe/qpeapplication.h> 17#include <qpe/qpeapplication.h>
18 18
19#include "mediumwidget.h" 19#include "mediumwidget.h"
20 20
21 21
22 22
23using namespace MediumMountSetting; 23using namespace MediumMountSetting;
24 24
25/* TRANSLATOR MediumMountSetting::MediumMountWidget */
26
25MediumMountWidget::MediumMountWidget(const QString &path, 27MediumMountWidget::MediumMountWidget(const QString &path,
26 const QPixmap &pix, 28 const QPixmap &pix,
27 QWidget *parent, 29 QWidget *parent,
28 const char *name ) 30 const char *name )
29 : QWidget( parent, name ) 31 : QWidget( parent, name )
30{ 32{
31 if(parent == 0){ 33 if(parent == 0){
32 resize(QApplication::desktop()->width(), QApplication::desktop()->height() ); 34 resize(QApplication::desktop()->width(), QApplication::desktop()->height() );
33 }else{ 35 }else{
34 resize(parent->width(), parent->height() ); 36 resize(parent->width(), parent->height() );
35 } 37 }
36 m_path = path; 38 m_path = path;
37 initGUI(); 39 initGUI();
38 m_label->setPixmap(pix ); 40 m_label->setPixmap(pix );
39 m_config = 0; 41 m_config = 0;
40 42
41 readConfig(); 43 readConfig();
42} 44}
43// now we fire up the GUI 45// now we fire up the GUI
44// if I would know what I'm doing ;) 46// if I would know what I'm doing ;)
45void MediumMountWidget::initGUI() 47void MediumMountWidget::initGUI()
46{ 48{
47 //main layout 49 //main layout
48 m_box = new QVBoxLayout( this , 5, 5 ); 50 m_box = new QVBoxLayout( this , 5, 5 );