summaryrefslogtreecommitdiff
authorharlekin <harlekin>2003-04-05 14:37:23 (UTC)
committer harlekin <harlekin>2003-04-05 14:37:23 (UTC)
commit32faa31960652ee538fd3bcc8c248c850aed1a4b (patch) (side-by-side diff)
tree9406b29372c7622bbdfff58c3808f3c73597a5ed
parent80ad96b12a194089cfe11796579c3b973f3db41b (diff)
downloadopie-32faa31960652ee538fd3bcc8c248c850aed1a4b.zip
opie-32faa31960652ee538fd3bcc8c248c850aed1a4b.tar.gz
opie-32faa31960652ee538fd3bcc8c248c850aed1a4b.tar.bz2
show mediummount maximized
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/mediummount/main.cpp1
-rw-r--r--noncore/settings/mediummount/mediumwidget.cc8
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 @@
#include "mediumwidget.h"
#include "mediumglobal.h"
#include "mainwindow.h"
#include <qpixmap.h>
#include <qpe/qpeapplication.h>
int main( int argc, char ** argv )
{
QPEApplication a( argc, argv );
MediumMountSetting::MainWindow mw;
a.showMainWidget( &mw );
+ mw.showMaximized();
return a.exec();
}
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,
}else{
resize(parent->width(), parent->height() );
}
m_path = path;
initGUI();
m_label->setPixmap(pix );
m_config = 0;
readConfig();
}
// now we fire up the GUI
// if I would know what I'm doing ;)
void MediumMountWidget::initGUI()
{
//main layout
m_box = new QVBoxLayout( this , 5, 5 );
- m_box->setSpacing( 5 );
+ //m_box->setSpacing( 5 );
//m_box->addStretch( -1 );
// picture + text
m_infoBox = new QHBox(this, "infobox" );
- m_infoBox->setSpacing( 4 );
+ //m_infoBox->setSpacing( 4 );
m_label = new QLabel(m_infoBox );
m_desc = new QLabel(m_infoBox );
m_desc->setTextFormat( Qt::RichText );
QWhatsThis::add( this, tr("Configure this medium. The changes will"
" go into effect when the application gets"
" closed. To update the Document Tab you need"
" to remove and insert this medium."));
m_desc->setText("" );
m_box->addWidget( m_infoBox ); // add the widget to the layout
// groupbox
m_group = new QGroupBox(tr("Which media files"), this, "MediaFiles" );
m_checks = new QGridLayout( m_group, 4, 3 );
- m_checks->setMargin( 12 );
+ //m_checks->setMargin( 12 );
QSpacerItem *item2 = new QSpacerItem(5, 8,
QSizePolicy::Fixed,
QSizePolicy::Fixed);
m_box->addItem( item2 );
m_audio = new QCheckBox( tr("Audio"), m_group );
m_all = new QCheckBox( tr("All") , m_group );
m_image = new QCheckBox( tr("Image"), m_group );
m_text = new QCheckBox( tr("Text") , m_group );
m_video = new QCheckBox( tr("Video"), m_group );
QSpacerItem *iti1b = new QSpacerItem(2, 10, QSizePolicy::Fixed,
QSizePolicy::Fixed );
@@ -94,33 +94,33 @@ void MediumMountWidget::initGUI()
m_checks->addRowSpacing(0, 8 );
m_checks->addColSpacing(1, 2 );
m_checks->setColStretch(1, -2 );
connect(m_all, SIGNAL(stateChanged(int) ),
this, SLOT(slotStateChanged() ) );
m_box->addWidget( m_group );
// label
m_lblPath = new QLabel(tr("Limit search to:"), this );
m_box->addWidget( m_lblPath );
// add to
m_hboxAdd = new QHBox( this );
- m_hboxAdd->setSpacing( 10 );
+ //m_hboxAdd->setSpacing( 10 );
m_edit = new QLineEdit(m_hboxAdd );
m_add = new QPushButton(m_hboxAdd );
m_add->setText( tr("Add") );
m_box->addWidget(m_hboxAdd );
m_always = new QCheckBox( tr("Always check this medium"), this );
m_box->addWidget( m_always );
QSpacerItem *item = new QSpacerItem(5, 50,
QSizePolicy::Fixed,
QSizePolicy::Expanding );
m_box->addItem(item );
}