mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 05:25:50 +03:00
Fix currentPage QPROPERTY missing NOTIFY in settingsdialog class
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
0495c6567a
commit
403f43b3e8
2 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue