Commit 8a4df778 authored by Thomas Baumgart's avatar Thomas Baumgart
Browse files

Allow to programatically select next or previoius page of a wizard

BUG: 440736
parent 218c70fc
Pipeline #74097 passed with stage
in 18 minutes and 45 seconds
......@@ -161,3 +161,13 @@ void KMyMoneyWizard::accept()
if (page->isComplete())
QDialog::accept();
}
void KMyMoneyWizard::selectNextPage()
{
nextButtonClicked();
}
void KMyMoneyWizard::selectPreviousPage()
{
backButtonClicked();
}
......@@ -164,6 +164,10 @@ public:
virtual ~KMyMoneyWizard();
public Q_SLOTS:
void selectNextPage();
void selectPreviousPage();
Q_SIGNALS:
// /**
// * This signal is sent out, when a new payee needs to be created
......
......@@ -95,6 +95,7 @@ HierarchyPage::HierarchyPage(Wizard* wizard) :
proxyModel->setDynamicSortFilter(true);
connect(d->ui->m_parentAccounts->selectionModel(), &QItemSelectionModel::currentChanged, this, &HierarchyPage::parentAccountChanged);
connect(d->ui->m_parentAccounts, &KMyMoneyAccountTreeView::startEdit, wizard, &KMyMoneyWizard::selectNextPage);
}
HierarchyPage::~HierarchyPage()
......
Supports Markdown
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