summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Caulier <[email protected]>2014-11-23 22:57:54 +0100
committerGilles Caulier <[email protected]>2014-11-23 22:57:54 +0100
commit80da4ab5b01d0a99e115799e977d23ea5c578321 (patch)
treec8e33439837d23030ecce33b6c717f8c333ec9e5
parent46e37b5064666b28455e6403749e4a1848a6151c (diff)
fix deprecated
-rw-r--r--src/configwidget.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/configwidget.cpp b/src/configwidget.cpp
index 28125fb..63111dd 100644
--- a/src/configwidget.cpp
+++ b/src/configwidget.cpp
@@ -33,10 +33,10 @@
#include <QGridLayout>
#include <QLabel>
#include <QFontMetrics>
+#include <QHBoxLayout>
// KDE includes
-#include <khbox.h>
#include <kdialog.h>
#include <ktoolinvocation.h>
#include <kstandarddirs.h>
@@ -85,7 +85,7 @@ public:
QGridLayout* grid;
- KHBox* hbox;
+ QWidget* hbox;
KUrlLabel* kipiLogoLabel;
PluginListView* pluginsList;
@@ -127,21 +127,25 @@ void ConfigWidget::Private::updateInfo()
ConfigWidget::ConfigWidget(QWidget* const parent)
: QScrollArea(parent), d(new Private)
{
- QWidget* panel = new QWidget(viewport());
+ QWidget* const panel = new QWidget(viewport());
d->grid = new QGridLayout(panel);
d->pluginsNumber = new QLabel(panel);
d->pluginsNumberActivated = new QLabel(panel);
- d->hbox = new KHBox(panel);
+ d->hbox = new QWidget(panel);
+ QHBoxLayout* const hboxLay = new QHBoxLayout(d->hbox);
d->checkAllBtn = new QPushButton(i18n("Check All"), d->hbox);
d->clearBtn = new QPushButton(i18n("Clear"), d->hbox);
- QWidget* space = new QWidget(d->hbox);
+ QWidget* const space = new QWidget(d->hbox);
+ hboxLay->addWidget(d->checkAllBtn);
+ hboxLay->addWidget(d->clearBtn);
+ hboxLay->addWidget(space);
PluginLoader* const loader = PluginLoader::instance();
d->kipipluginsVersion = new QLabel(i18n("Kipi Plugins: %1", loader ? loader->kipiPluginsVersion() : i18nc("Version unavailable", "unavailable")), panel);
d->libkipiVersion = new QLabel(i18n("LibKipi: %1", QString(KIPI_VERSION_STRING)), panel);
d->pluginsList = new PluginListView(panel);
d->pluginsList->setWhatsThis(i18n("List of available Kipi plugins."));
d->libkipiVersion->setAlignment(Qt::AlignRight);
- d->hbox->setStretchFactor(space, 10);
+ hboxLay->setStretchFactor(space, 10);
d->kipiLogoLabel = new KUrlLabel(panel);
d->kipiLogoLabel->setText(QString());