summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/launcher/mediadlg.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/launcher/mediadlg.cpp b/core/launcher/mediadlg.cpp
index 6448863..db950fc 100644
--- a/core/launcher/mediadlg.cpp
+++ b/core/launcher/mediadlg.cpp
@@ -3,6 +3,7 @@
#include <qtopia/storage.h>
#include <qpixmap.h>
#include <qlayout.h>
+#include <qlabel.h>
Mediadlg::Mediadlg(FileSystem*fs,QWidget *parent, const char *name, bool modal, WFlags fl)
: QDialog(parent,name,modal,fl)
@@ -20,8 +21,15 @@ void Mediadlg::init()
{
if (!m_fs) return;
m_lay = new QVBoxLayout( this );
+ m_lay->setSpacing(0);
+ m_lay->setMargin(0);
+ QLabel*tLabel = new QLabel(this);
+ tLabel->setText("<center>"+tr("A new storage media detected:")+"<br>"+m_fs->name()+"<br>"+tr("What should I do with it?")+"</center>");
+ m_lay->addWidget(tLabel);
m_widget = new MediumMountSetting::MediumMountWidget(m_fs->path(),QPixmap(),this);
m_lay->addWidget(m_widget);
+ QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding);
+ m_lay->addItem(spacer);
}
void Mediadlg::accept()