Fix Bug 359018 - Pressing cancel does not undo changes made to "Empty local wastebin...
[kdepim.git] / storageservicemanager / storageserviceconfigurestoragewidget.cpp
blob1657d65872e52dccd2a0daf6ef5ce5bcba1cacd9
1 /*
2 Copyright (c) 2014-2015 Montel Laurent <montel@kde.org>
4 This program is free software; you can redistribute it and/or modify it
5 under the terms of the GNU General Public License, version 2, as
6 published by the Free Software Foundation.
8 This program is distributed in the hope that it will be useful, but
9 WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 General Public License for more details.
13 You should have received a copy of the GNU General Public License along
14 with this program; if not, write to the Free Software Foundation, Inc.,
15 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 #include "storageserviceconfigurestoragewidget.h"
20 #include <KLocalizedString>
22 #include <QHBoxLayout>
23 #include <QPushButton>
25 StorageServiceConfigureStorageWidget::StorageServiceConfigureStorageWidget(QWidget *parent)
26 : QWidget(parent)
28 QHBoxLayout *hbox = new QHBoxLayout;
29 QPushButton *button = new QPushButton(i18n("Configure..."));
30 button->setObjectName(QStringLiteral("configure_button"));
31 button->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
32 connect(button, &QPushButton::clicked, this, &StorageServiceConfigureStorageWidget::configureClicked);
33 hbox->addWidget(button);
34 setLayout(hbox);
37 StorageServiceConfigureStorageWidget::~StorageServiceConfigureStorageWidget()