1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-26 18:35:20 +00:00
OpenMW/apps/opencs/view/prefs/pagebase.hpp

38 lines
569 B
C++
Raw Normal View History

2015-12-08 12:04:45 +01:00
#ifndef CSV_PREFS_PAGEBASE_H
#define CSV_PREFS_PAGEBASE_H
#include <QScrollArea>
2017-05-11 19:46:51 +12:00
class QContextMenuEvent;
2015-12-08 12:04:45 +01:00
namespace CSMPrefs
{
class Category;
}
namespace CSVPrefs
{
class PageBase : public QScrollArea
{
2022-09-22 21:26:05 +03:00
Q_OBJECT
2015-12-08 12:04:45 +01:00
2022-09-22 21:26:05 +03:00
CSMPrefs::Category& mCategory;
2015-12-08 12:04:45 +01:00
2022-09-22 21:26:05 +03:00
public:
PageBase(CSMPrefs::Category& category, QWidget* parent);
2015-12-08 12:04:45 +01:00
2022-09-22 21:26:05 +03:00
CSMPrefs::Category& getCategory();
2015-12-08 12:04:45 +01:00
2022-09-22 21:26:05 +03:00
protected:
void contextMenuEvent(QContextMenuEvent*) override;
2017-05-11 19:46:51 +12:00
2022-09-22 21:26:05 +03:00
private slots:
2017-05-11 19:46:51 +12:00
2022-09-22 21:26:05 +03:00
void resetCategory();
2017-05-11 19:46:51 +12:00
2022-09-22 21:26:05 +03:00
void resetAll();
2015-12-08 12:04:45 +01:00
};
}
#endif