18 if (sectionChangeQueued_)
20 sectionChangeQueued_ =
true;
21 QMetaObject::invokeMethod(
24 sectionChangeQueued_ =
false;
27 Qt::QueuedConnection);
39 if (settingsCategory_ == c)
41 settingsCategory_ = c;
42 if (settingsCategoryChangeQueued_)
44 settingsCategoryChangeQueued_ =
true;
45 QMetaObject::invokeMethod(
48 settingsCategoryChangeQueued_ =
false;
51 Qt::QueuedConnection);
Declarations for the UI Navigation component.
Q_INVOKABLE void setSectionValue(int value)
Sets the active shell section from QML.
Section
Top-level shell sections shown by the desktop UI.
void sectionChanged()
Emitted when the active shell section changes.
SettingsCategory
Settings page categories shown inside the settings section.
void setSettingsCategory(SettingsCategory c)
Sets the active settings category.
void setSection(Section s)
Sets the active shell section.
Q_INVOKABLE void navigateToSection(int section)
Navigates to a top-level shell section from QML.
Q_INVOKABLE void setSettingsCategoryValue(int value)
Sets the active settings category from QML.
Navigation(QObject *parent=nullptr)
Creates the navigation state.
void settingsCategoryChanged()
Emitted when the active settings category changes.