Fix currentPage QPROPERTY missing NOTIFY in settingsdialog class

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2022-12-19 14:14:38 +01:00 committed by Matthieu Gallien
parent 0495c6567a
commit 403f43b3e8
2 changed files with 4 additions and 1 deletions

View file

@ -132,6 +132,8 @@ SettingsDialog::SettingsDialog(ownCloudGui *gui, QWidget *parent)
auto *networkSettings = new NetworkSettings;
_ui->stack->addWidget(networkSettings);
connect(_ui->stack, &QStackedWidget::currentChanged, this, &SettingsDialog::currentPageChanged);
_actionGroupWidgets.insert(generalAction, generalSettings);
_actionGroupWidgets.insert(networkAction, networkSettings);

View file

@ -45,7 +45,7 @@ class ownCloudGui;
class SettingsDialog : public QDialog
{
Q_OBJECT
Q_PROPERTY(QWidget* currentPage READ currentPage)
Q_PROPERTY(QWidget* currentPage READ currentPage NOTIFY currentPageChanged)
public:
explicit SettingsDialog(ownCloudGui *gui, QWidget *parent = nullptr);
@ -63,6 +63,7 @@ public slots:
signals:
void styleChanged();
void onActivate();
void currentPageChanged();
protected:
void reject() override;