1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-23 05:23:52 +00:00
openmw/apps/opencs/view/prefs/pagebase.hpp

38 lines
569 B
C++
Raw Normal View History

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