diff options
Diffstat (limited to 'src/modules/dcc/dialogs.cpp')
| -rw-r--r-- | src/modules/dcc/dialogs.cpp | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/src/modules/dcc/dialogs.cpp b/src/modules/dcc/dialogs.cpp index 18f1f4f5c..d971e65b1 100644 --- a/src/modules/dcc/dialogs.cpp +++ b/src/modules/dcc/dialogs.cpp @@ -25,12 +25,14 @@ #include "kvi_iconmanager.h" #include "kvi_app.h" -#include <qlayout.h> -#include <qpushbutton.h> -#include <qlabel.h> -#include <qstringlist.h> -#include <qevent.h> -#include <qdesktopwidget.h> +#include <QLayout> +#include <QPushButton> +#include <QLabel> +#include <QStringList> +#include <QDesktopWidget> +#include <QEvent> +#include <QCloseEvent> +#include <QShowEvent> KviDccBox::KviDccBox(KviDccBroker * br,KviDccDescriptor * dcc) { @@ -55,10 +57,9 @@ KviDccAcceptBox::KviDccAcceptBox(KviDccBroker * br,KviDccDescriptor * dcc,const { QVBoxLayout * vb = new QVBoxLayout(this,4,4); QLabel * l = new QLabel(text,this); -#ifdef COMPILE_USE_QT4 l->setWordWrap(true); -#endif vb->addWidget(l); + QHBoxLayout *hb = new QHBoxLayout(4); vb->addLayout(hb,Qt::AlignCenter); QPushButton * btn = new QPushButton(__tr2qs_ctx("&Accept","dcc"),this); @@ -111,16 +112,12 @@ void KviDccAcceptBox::showEvent(QShowEvent *e) } - - KviDccRenameBox::KviDccRenameBox(KviDccBroker * br,KviDccDescriptor * dcc,const QString &text,bool bDisableResume) : QWidget(0,"dcc_rename_box") , KviDccBox(br,dcc) { QVBoxLayout * vb = new QVBoxLayout(this,4,4); QLabel * l = new QLabel(text,this); -#ifdef COMPILE_USE_QT4 l->setWordWrap(true); -#endif vb->addWidget(l); QHBoxLayout *hb = new QHBoxLayout(4); @@ -200,9 +197,6 @@ void KviDccRenameBox::cancelClicked() g_pApp->collectGarbage(this); } - - - #ifndef COMPILE_USE_STANDALONE_MOC_SOURCES #include "m_dialogs.moc" #endif //!COMPILE_USE_STANDALONE_MOC_SOURCES |
