From 0861c3286f6679ed02dd06bea42bce338fce1489 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Fri, 30 Mar 2007 15:35:01 +0000 Subject: [PATCH] small touches to the backend choosing dialog: - improves the text, getting rid of the wordwrap for the label - delete the widget class when no more needed svn path=/trunk/playground/graphics/okular/; revision=648131 --- core/chooseenginedialog.cpp | 8 ++++++- core/chooseenginedialog.h | 1 + core/chooseenginewidget.ui | 43 ++++++++++++------------------------- 3 files changed, 22 insertions(+), 30 deletions(-) diff --git a/core/chooseenginedialog.cpp b/core/chooseenginedialog.cpp index ba0e42331..41bd35b4a 100644 --- a/core/chooseenginedialog.cpp +++ b/core/chooseenginedialog.cpp @@ -30,10 +30,16 @@ ChooseEngineDialog::ChooseEngineDialog( const QStringList &generators, const KMi m_widget->engineList->addItems(generators); m_widget->description->setText( - i18n( "More than one backend found for mimetype \"%1\" (%2).\n" + i18n( "More than one backend found for the MIME type:
" + "%1 (%2).

" "Please select which one to use:", mime->comment(), mime->name() ) ); } +ChooseEngineDialog::~ChooseEngineDialog() +{ + delete m_widget; +} + int ChooseEngineDialog::selectedGenerator() const { return m_widget->engineList->currentIndex(); diff --git a/core/chooseenginedialog.h b/core/chooseenginedialog.h index e2afc75b5..20ae73946 100644 --- a/core/chooseenginedialog.h +++ b/core/chooseenginedialog.h @@ -21,6 +21,7 @@ class ChooseEngineDialog : public KDialog { public: ChooseEngineDialog( const QStringList &generators, const KMimeType::Ptr &mime, QWidget * parent = 0 ); + ~ChooseEngineDialog(); int selectedGenerator() const; diff --git a/core/chooseenginewidget.ui b/core/chooseenginewidget.ui index 9d77022e3..541d28412 100644 --- a/core/chooseenginewidget.ui +++ b/core/chooseenginewidget.ui @@ -1,57 +1,42 @@ - - - ChooseEngineWidget 0 0 - 364 - 97 + 286 + 96 - + 0 - - 6 + + 0 + + + 0 + + + 0 - - - 1 - 1 - 0 - 0 - - - - true + + Qt::RichText - - - - 1 - 0 - 0 - 0 - - - + -