Migration of QtMvvm from github
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
910 B

#ifndef QTMVVM_SETTINGSDIALOG_H
#define QTMVVM_SETTINGSDIALOG_H
#include <QtCore/qscopedpointer.h>
#include <QtMvvmCore/settingsviewmodel.h>
#include <QtWidgets/qdialog.h>
#include "QtMvvmWidgets/qtmvvmwidgets_global.h"
namespace QtMvvm {
class SettingsDialogPrivate;
//! The widgets view implementation for the SettingsViewModel
class Q_MVVMWIDGETS_EXPORT SettingsDialog : public QDialog
{
Q_OBJECT
public:
//! View constructor
Q_INVOKABLE explicit SettingsDialog(QtMvvm::ViewModel *viewModel, QWidget *parent = nullptr);
~SettingsDialog() override;
protected:
//! Returns the stylesheet used highlight labels found when searching
virtual QString labelFilterStyleSheet() const;
//! Return a url to overwrite the default settings icon
virtual QUrl iconOverwrite() const;
private:
friend class QtMvvm::SettingsDialogPrivate;
SettingsDialogPrivate *d;
};
}
#endif // QTMVVM_SETTINGSDIALOG_H