-rw-r--r-- | core/launcher/mediummountgui.cpp | 5 | ||||
-rw-r--r-- | core/launcher/mediummountgui.h | 6 |
2 files changed, 6 insertions, 5 deletions
diff --git a/core/launcher/mediummountgui.cpp b/core/launcher/mediummountgui.cpp index 0be90e6..2454efa 100644 --- a/core/launcher/mediummountgui.cpp +++ b/core/launcher/mediummountgui.cpp | |||
@@ -11,26 +11,27 @@ | |||
11 | #include <qtooltip.h> | 11 | #include <qtooltip.h> |
12 | #include <qwhatsthis.h> | 12 | #include <qwhatsthis.h> |
13 | #include <qimage.h> | 13 | #include <qimage.h> |
14 | #include <qpixmap.h> | 14 | #include <qpixmap.h> |
15 | 15 | ||
16 | #include <qpe/resource.h> | 16 | #include <qpe/resource.h> |
17 | #include <opie/oconfig.h> | 17 | #include <opie/oconfig.h> |
18 | 18 | ||
19 | 19 | ||
20 | #include <qapplication.h> | 20 | #include <qapplication.h> |
21 | 21 | ||
22 | 22 | ||
23 | MediumMountGui::MediumMountGui( const QString &path ,QWidget* parent, const char* name, WFlags fl ) | 23 | MediumMountGui::MediumMountGui( const QString &path ,QWidget* parent, const char* name, bool modal, WFlags fl ) |
24 | : QWidget( parent, name, fl ) { | 24 | : QDialog( parent, name, modal, fl ) { |
25 | |||
25 | 26 | ||
26 | QWidget *d = QApplication::desktop(); | 27 | QWidget *d = QApplication::desktop(); |
27 | int w=d->width(); | 28 | int w=d->width(); |
28 | int h=d->height(); | 29 | int h=d->height(); |
29 | resize( w , h ); | 30 | resize( w , h ); |
30 | setCaption( tr( "Medium inserted" ) ); | 31 | setCaption( tr( "Medium inserted" ) ); |
31 | 32 | ||
32 | mediumPath = path; | 33 | mediumPath = path; |
33 | readConfig(); | 34 | readConfig(); |
34 | startGui(); | 35 | startGui(); |
35 | } | 36 | } |
36 | 37 | ||
diff --git a/core/launcher/mediummountgui.h b/core/launcher/mediummountgui.h index 0da2803..700a922 100644 --- a/core/launcher/mediummountgui.h +++ b/core/launcher/mediummountgui.h | |||
@@ -1,32 +1,32 @@ | |||
1 | #ifndef MEDIUMMOUNTGUI_H | 1 | #ifndef MEDIUMMOUNTGUI_H |
2 | #define MEDIUMMOUNTGUI_H | 2 | #define MEDIUMMOUNTGUI_H |
3 | 3 | ||
4 | #include <qvariant.h> | 4 | #include <qvariant.h> |
5 | #include <qwidget.h> | 5 | #include <qdialog.h> |
6 | class QVBoxLayout; | 6 | class QVBoxLayout; |
7 | class QHBoxLayout; | 7 | class QHBoxLayout; |
8 | class QGridLayout; | 8 | class QGridLayout; |
9 | class QCheckBox; | 9 | class QCheckBox; |
10 | class QGroupBox; | 10 | class QGroupBox; |
11 | class QLabel; | 11 | class QLabel; |
12 | class QLineEdit; | 12 | class QLineEdit; |
13 | class QPushButton; | 13 | class QPushButton; |
14 | 14 | ||
15 | class MediumMountGui : public QWidget | 15 | class MediumMountGui : public QDialog |
16 | { | 16 | { |
17 | Q_OBJECT | 17 | Q_OBJECT |
18 | 18 | ||
19 | public: | 19 | public: |
20 | MediumMountGui( const QString &path = "/tmp/", QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | 20 | MediumMountGui( const QString &path = "/tmp/", QWidget* parent = 0, const char* name = 0, bool modal = FALSE ,WFlags fl = 0 ); |
21 | ~MediumMountGui(); | 21 | ~MediumMountGui(); |
22 | 22 | ||
23 | protected: | 23 | protected: |
24 | QPushButton* quit; | 24 | QPushButton* quit; |
25 | QPushButton* quit_2; | 25 | QPushButton* quit_2; |
26 | QLabel* DirSelectText_2; | 26 | QLabel* DirSelectText_2; |
27 | QLineEdit* LineEdit1; | 27 | QLineEdit* LineEdit1; |
28 | QPushButton* PushButton3; | 28 | QPushButton* PushButton3; |
29 | QLabel* DirSelectText; | 29 | QLabel* DirSelectText; |
30 | QLabel* Text_2; | 30 | QLabel* Text_2; |
31 | QLabel* Text; | 31 | QLabel* Text; |
32 | QGroupBox* GroupBox1; | 32 | QGroupBox* GroupBox1; |