1#ifndef DIALOGS_SETTINGSDIALOG_H
2#define DIALOGS_SETTINGSDIALOG_H
12class OptionCategoryModel;
13class OptionCategoryFilterModel;
23 Q_PROPERTY(
bool tabBarAlwaysVisible READ isTabBarAlwaysVisible WRITE setTabBarAlwaysVisible)
28 bool isTabBarAlwaysVisible()
const;
29 void setTabBarAlwaysVisible(
bool value);
32 OptionPage *page(
int categoryIndex,
int pageIndex)
const;
34 void translateCategory(
OptionCategory *category,
const std::function<QString()> &translator);
36 QWidget *cornerWidget(Qt::Corner corner = Qt::TopRightCorner)
const;
37 void setCornerWidget(QWidget *widget, Qt::Corner corner = Qt::TopRightCorner);
38 void addHeadingWidget(QWidget *widget);
39 void selectPage(
int categoryIndex,
int pageIndex);
51 bool event(QEvent *event)
override;
52 void showEvent(QShowEvent *event)
override;
55 void currentCategoryChanged(
const QModelIndex &index);
56 void updateTabWidget();
57 void retranslateTabWidget();
60 std::unique_ptr<Ui::SettingsDialog> m_ui;
64 bool m_tabBarAlwaysVisible;
76 return m_tabBarAlwaysVisible;
85 return m_categoryModel;
The OptionCategoryFilterModel class is used by SettingsDialog to filter option categories.
The OptionCategoryModel class is used by SettingsDialog to store and display option categories.
The OptionCategory class wraps associated option pages.
The OptionPage class is the base class for SettingsDialog pages.
The SettingsDialog class provides a framework for creating settings dialogs with different categories...
OptionCategoryModel * categoryModel()
Returns the category model used by the settings dialog to manage the categories.
void retranslationRequired()
bool isTabBarAlwaysVisible() const
Returns whether the tab bar is always visible.
#define QT_UTILITIES_EXPORT
Marks the symbol to be exported by the qtutilities library.