summaryrefslogtreecommitdiff
authoralwin <alwin>2004-02-24 02:15:14 (UTC)
committer alwin <alwin>2004-02-24 02:15:14 (UTC)
commit4baf741237a4c4575b3efe0bff6c4e143902b7ec (patch) (side-by-side diff)
tree8a57cc0071bb57bd94f1d3a456336bd792baff2e
parent99bcf9b87929dfba62449f6e365eff561ed3fab9 (diff)
downloadopie-4baf741237a4c4575b3efe0bff6c4e143902b7ec.zip
opie-4baf741237a4c4575b3efe0bff6c4e143902b7ec.tar.gz
opie-4baf741237a4c4575b3efe0bff6c4e143902b7ec.tar.bz2
user gets a message why this dialog appears
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/launcher/mediadlg.cpp10
1 files changed, 9 insertions, 1 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
@@ -5,2 +5,3 @@
#include <qlayout.h>
+#include <qlabel.h>
@@ -21,5 +22,12 @@ void Mediadlg::init()
if (!m_fs) return;
- m_lay = new QVBoxLayout( this );
+ 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);
}