diff options
| author | Montel Laurent <[email protected]> | 2014-10-18 14:43:41 +0200 |
|---|---|---|
| committer | Montel Laurent <[email protected]> | 2014-10-18 14:43:41 +0200 |
| commit | aabd6ad3bc0fd11793c3332c9181af95da9bf607 (patch) | |
| tree | b1af0e3ddcff6b319c7c8a3efc549b686b971f49 | |
| parent | 31a0c4fbd59c93a48f093be62b8ef19e6839de37 (diff) | |
port to QPushButton
| -rw-r--r-- | src/settings/serviceitemdelegate.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/settings/serviceitemdelegate.cpp b/src/settings/serviceitemdelegate.cpp index 9b2cbd890..62ab60fd9 100644 --- a/src/settings/serviceitemdelegate.cpp +++ b/src/settings/serviceitemdelegate.cpp @@ -20,7 +20,7 @@ #include "serviceitemdelegate.h" #include <KDebug> -#include <KPushButton> +#include <QPushButton> #include <QIcon> #include "servicemodel.h" @@ -74,8 +74,8 @@ QList<QWidget*> ServiceItemDelegate::createItemWidgets(const QModelIndex&) const checkBox->setPalette(palette); connect(checkBox, &QCheckBox::clicked, this, &ServiceItemDelegate::slotCheckBoxClicked); - KPushButton* configureButton = new KPushButton(); - connect(configureButton, &KPushButton::clicked, this, &ServiceItemDelegate::slotConfigureButtonClicked); + QPushButton* configureButton = new QPushButton(); + connect(configureButton, &QPushButton::clicked, this, &ServiceItemDelegate::slotConfigureButtonClicked); return QList<QWidget*>() << checkBox << configureButton; } @@ -85,7 +85,7 @@ void ServiceItemDelegate::updateItemWidgets(const QList<QWidget*> widgets, const QPersistentModelIndex& index) const { QCheckBox* checkBox = static_cast<QCheckBox*>(widgets[0]); - KPushButton *configureButton = static_cast<KPushButton*>(widgets[1]); + QPushButton *configureButton = static_cast<QPushButton*>(widgets[1]); const int itemHeight = sizeHint(option, index).height(); |
