author | harlekin <harlekin> | 2003-04-05 14:37:23 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2003-04-05 14:37:23 (UTC) |
commit | 32faa31960652ee538fd3bcc8c248c850aed1a4b (patch) (unidiff) | |
tree | 9406b29372c7622bbdfff58c3808f3c73597a5ed | |
parent | 80ad96b12a194089cfe11796579c3b973f3db41b (diff) | |
download | opie-32faa31960652ee538fd3bcc8c248c850aed1a4b.zip opie-32faa31960652ee538fd3bcc8c248c850aed1a4b.tar.gz opie-32faa31960652ee538fd3bcc8c248c850aed1a4b.tar.bz2 |
show mediummount maximized
-rw-r--r-- | noncore/settings/mediummount/main.cpp | 1 | ||||
-rw-r--r-- | noncore/settings/mediummount/mediumwidget.cc | 8 |
2 files changed, 5 insertions, 4 deletions
diff --git a/noncore/settings/mediummount/main.cpp b/noncore/settings/mediummount/main.cpp index e4443bd..118a725 100644 --- a/noncore/settings/mediummount/main.cpp +++ b/noncore/settings/mediummount/main.cpp | |||
@@ -1,16 +1,17 @@ | |||
1 | #include "mediumwidget.h" | 1 | #include "mediumwidget.h" |
2 | #include "mediumglobal.h" | 2 | #include "mediumglobal.h" |
3 | #include "mainwindow.h" | 3 | #include "mainwindow.h" |
4 | 4 | ||
5 | #include <qpixmap.h> | 5 | #include <qpixmap.h> |
6 | #include <qpe/qpeapplication.h> | 6 | #include <qpe/qpeapplication.h> |
7 | 7 | ||
8 | int main( int argc, char ** argv ) | 8 | int main( int argc, char ** argv ) |
9 | { | 9 | { |
10 | QPEApplication a( argc, argv ); | 10 | QPEApplication a( argc, argv ); |
11 | 11 | ||
12 | MediumMountSetting::MainWindow mw; | 12 | MediumMountSetting::MainWindow mw; |
13 | a.showMainWidget( &mw ); | 13 | a.showMainWidget( &mw ); |
14 | mw.showMaximized(); | ||
14 | 15 | ||
15 | return a.exec(); | 16 | return a.exec(); |
16 | } | 17 | } |
diff --git a/noncore/settings/mediummount/mediumwidget.cc b/noncore/settings/mediummount/mediumwidget.cc index f98e637..eadf502 100644 --- a/noncore/settings/mediummount/mediumwidget.cc +++ b/noncore/settings/mediummount/mediumwidget.cc | |||
@@ -33,53 +33,53 @@ MediumMountWidget::MediumMountWidget(const QString &path, | |||
33 | }else{ | 33 | }else{ |
34 | resize(parent->width(), parent->height() ); | 34 | resize(parent->width(), parent->height() ); |
35 | } | 35 | } |
36 | m_path = path; | 36 | m_path = path; |
37 | initGUI(); | 37 | initGUI(); |
38 | m_label->setPixmap(pix ); | 38 | m_label->setPixmap(pix ); |
39 | m_config = 0; | 39 | m_config = 0; |
40 | 40 | ||
41 | readConfig(); | 41 | readConfig(); |
42 | } | 42 | } |
43 | // now we fire up the GUI | 43 | // now we fire up the GUI |
44 | // if I would know what I'm doing ;) | 44 | // if I would know what I'm doing ;) |
45 | void MediumMountWidget::initGUI() | 45 | void MediumMountWidget::initGUI() |
46 | { | 46 | { |
47 | //main layout | 47 | //main layout |
48 | m_box = new QVBoxLayout( this , 5, 5 ); | 48 | m_box = new QVBoxLayout( this , 5, 5 ); |
49 | m_box->setSpacing( 5 ); | 49 | //m_box->setSpacing( 5 ); |
50 | //m_box->addStretch( -1 ); | 50 | //m_box->addStretch( -1 ); |
51 | 51 | ||
52 | // picture + text | 52 | // picture + text |
53 | m_infoBox = new QHBox(this, "infobox" ); | 53 | m_infoBox = new QHBox(this, "infobox" ); |
54 | m_infoBox->setSpacing( 4 ); | 54 | //m_infoBox->setSpacing( 4 ); |
55 | m_label = new QLabel(m_infoBox ); | 55 | m_label = new QLabel(m_infoBox ); |
56 | m_desc = new QLabel(m_infoBox ); | 56 | m_desc = new QLabel(m_infoBox ); |
57 | m_desc->setTextFormat( Qt::RichText ); | 57 | m_desc->setTextFormat( Qt::RichText ); |
58 | QWhatsThis::add( this, tr("Configure this medium. The changes will" | 58 | QWhatsThis::add( this, tr("Configure this medium. The changes will" |
59 | " go into effect when the application gets" | 59 | " go into effect when the application gets" |
60 | " closed. To update the Document Tab you need" | 60 | " closed. To update the Document Tab you need" |
61 | " to remove and insert this medium.")); | 61 | " to remove and insert this medium.")); |
62 | m_desc->setText("" ); | 62 | m_desc->setText("" ); |
63 | m_box->addWidget( m_infoBox ); // add the widget to the layout | 63 | m_box->addWidget( m_infoBox ); // add the widget to the layout |
64 | 64 | ||
65 | 65 | ||
66 | // groupbox | 66 | // groupbox |
67 | m_group = new QGroupBox(tr("Which media files"), this, "MediaFiles" ); | 67 | m_group = new QGroupBox(tr("Which media files"), this, "MediaFiles" ); |
68 | m_checks = new QGridLayout( m_group, 4, 3 ); | 68 | m_checks = new QGridLayout( m_group, 4, 3 ); |
69 | m_checks->setMargin( 12 ); | 69 | //m_checks->setMargin( 12 ); |
70 | 70 | ||
71 | 71 | ||
72 | 72 | ||
73 | QSpacerItem *item2 = new QSpacerItem(5, 8, | 73 | QSpacerItem *item2 = new QSpacerItem(5, 8, |
74 | QSizePolicy::Fixed, | 74 | QSizePolicy::Fixed, |
75 | QSizePolicy::Fixed); | 75 | QSizePolicy::Fixed); |
76 | m_box->addItem( item2 ); | 76 | m_box->addItem( item2 ); |
77 | 77 | ||
78 | m_audio = new QCheckBox( tr("Audio"), m_group ); | 78 | m_audio = new QCheckBox( tr("Audio"), m_group ); |
79 | m_all = new QCheckBox( tr("All") , m_group ); | 79 | m_all = new QCheckBox( tr("All") , m_group ); |
80 | m_image = new QCheckBox( tr("Image"), m_group ); | 80 | m_image = new QCheckBox( tr("Image"), m_group ); |
81 | m_text = new QCheckBox( tr("Text") , m_group ); | 81 | m_text = new QCheckBox( tr("Text") , m_group ); |
82 | m_video = new QCheckBox( tr("Video"), m_group ); | 82 | m_video = new QCheckBox( tr("Video"), m_group ); |
83 | 83 | ||
84 | QSpacerItem *iti1b = new QSpacerItem(2, 10, QSizePolicy::Fixed, | 84 | QSpacerItem *iti1b = new QSpacerItem(2, 10, QSizePolicy::Fixed, |
85 | QSizePolicy::Fixed ); | 85 | QSizePolicy::Fixed ); |
@@ -94,33 +94,33 @@ void MediumMountWidget::initGUI() | |||
94 | 94 | ||
95 | m_checks->addRowSpacing(0, 8 ); | 95 | m_checks->addRowSpacing(0, 8 ); |
96 | m_checks->addColSpacing(1, 2 ); | 96 | m_checks->addColSpacing(1, 2 ); |
97 | m_checks->setColStretch(1, -2 ); | 97 | m_checks->setColStretch(1, -2 ); |
98 | 98 | ||
99 | connect(m_all, SIGNAL(stateChanged(int) ), | 99 | connect(m_all, SIGNAL(stateChanged(int) ), |
100 | this, SLOT(slotStateChanged() ) ); | 100 | this, SLOT(slotStateChanged() ) ); |
101 | 101 | ||
102 | m_box->addWidget( m_group ); | 102 | m_box->addWidget( m_group ); |
103 | 103 | ||
104 | // label | 104 | // label |
105 | m_lblPath = new QLabel(tr("Limit search to:"), this ); | 105 | m_lblPath = new QLabel(tr("Limit search to:"), this ); |
106 | m_box->addWidget( m_lblPath ); | 106 | m_box->addWidget( m_lblPath ); |
107 | 107 | ||
108 | // add to | 108 | // add to |
109 | m_hboxAdd = new QHBox( this ); | 109 | m_hboxAdd = new QHBox( this ); |
110 | m_hboxAdd->setSpacing( 10 ); | 110 | //m_hboxAdd->setSpacing( 10 ); |
111 | m_edit = new QLineEdit(m_hboxAdd ); | 111 | m_edit = new QLineEdit(m_hboxAdd ); |
112 | m_add = new QPushButton(m_hboxAdd ); | 112 | m_add = new QPushButton(m_hboxAdd ); |
113 | m_add->setText( tr("Add") ); | 113 | m_add->setText( tr("Add") ); |
114 | 114 | ||
115 | m_box->addWidget(m_hboxAdd ); | 115 | m_box->addWidget(m_hboxAdd ); |
116 | 116 | ||
117 | m_always = new QCheckBox( tr("Always check this medium"), this ); | 117 | m_always = new QCheckBox( tr("Always check this medium"), this ); |
118 | 118 | ||
119 | m_box->addWidget( m_always ); | 119 | m_box->addWidget( m_always ); |
120 | 120 | ||
121 | QSpacerItem *item = new QSpacerItem(5, 50, | 121 | QSpacerItem *item = new QSpacerItem(5, 50, |
122 | QSizePolicy::Fixed, | 122 | QSizePolicy::Fixed, |
123 | QSizePolicy::Expanding ); | 123 | QSizePolicy::Expanding ); |
124 | m_box->addItem(item ); | 124 | m_box->addItem(item ); |
125 | } | 125 | } |
126 | 126 | ||