Commit 33dfd1ee authored by Martin Klapetek's avatar Martin Klapetek
Browse files

Port wizard buttons

parent 36c76d27
......@@ -23,9 +23,10 @@
#include "../google/pages/wallet.h"
#include <klocalizedstring.h>
#include <kpushbutton.h>
#include <kstandardguiitem.h>
#include <QPushButton>
#include <KWallet/Wallet>
using namespace KWallet;
......@@ -43,10 +44,20 @@ OwnCloudWizard::OwnCloudWizard(QWidget* parent, Qt::WindowFlags flags): QWizard(
addPage(connecting);
addPage(services);
setButton(QWizard::BackButton, new KPushButton(KStandardGuiItem::back(KStandardGuiItem::UseRTL)));
setButton(QWizard::NextButton, new KPushButton(KStandardGuiItem::forward(KStandardGuiItem::UseRTL)));
setButton(QWizard::FinishButton, new KPushButton(KStandardGuiItem::apply()));
setButton(QWizard::CancelButton, new KPushButton(KStandardGuiItem::cancel()));
QPushButton *backButton;
QPushButton *forwardButton;
QPushButton *applyButton;
QPushButton *cancelButton;
KGuiItem::assign(backButton, KStandardGuiItem::back());
KGuiItem::assign(forwardButton, KStandardGuiItem::forward());
KGuiItem::assign(applyButton, KStandardGuiItem::apply());
KGuiItem::assign(cancelButton, KStandardGuiItem::cancel());
setButton(QWizard::BackButton, backButton);
setButton(QWizard::NextButton, forwardButton);
setButton(QWizard::FinishButton, applyButton);
setButton(QWizard::CancelButton, cancelButton);
//We do not want "Forward" as text
setButtonText(QWizard::NextButton, i18nc("Action to go to the next page on the wizard", "Next"));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment