From 4baf741237a4c4575b3efe0bff6c4e143902b7ec Mon Sep 17 00:00:00 2001 From: alwin Date: Tue, 24 Feb 2004 02:15:14 +0000 Subject: user gets a message why this dialog appears --- (limited to 'core/launcher/mediadlg.cpp') 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 #include #include +#include Mediadlg::Mediadlg(FileSystem*fs,QWidget *parent, const char *name, bool modal, WFlags fl) : QDialog(parent,name,modal,fl) @@ -19,9 +20,16 @@ Mediadlg::~Mediadlg() 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("
"+tr("A new storage media detected:")+"
"+m_fs->name()+"
"+tr("What should I do with it?")+"
"); + 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() -- cgit v0.9.0.2