Skip to content

Commit

Permalink
Emit a signal on wizard close
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
Signed-off-by: Rainer Walke <walke@demogr.mpg.de>
  • Loading branch information
claucambra authored and rwalke committed Dec 4, 2024
1 parent 7b465ac commit eee66b9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/gui/wizard/owncloudwizard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,12 @@ void OwncloudWizard::changeEvent(QEvent *e)
QWizard::changeEvent(e);
}

void OwncloudWizard::closeEvent(QCloseEvent *event)
{
emit wizardClosed();
QWizard::closeEvent(event);
}

void OwncloudWizard::customizeStyle()
{
// HINT: Customize wizard's own style here, if necessary in the future (Dark-/Light-Mode switching)
Expand Down
2 changes: 2 additions & 0 deletions src/gui/wizard/owncloudwizard.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,11 @@ public slots:
void needCertificate();
void styleChanged();
void onActivate();
void wizardClosed();

protected:
void changeEvent(QEvent *) override;
void closeEvent(QCloseEvent *) override;

private:
void customizeStyle();
Expand Down

0 comments on commit eee66b9

Please sign in to comment.