1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-29 18:32:36 +00:00
OpenMW/apps/opencs/view/prefs/contextmenuwidget.hpp

37 lines
604 B
C++
Raw Normal View History

#ifndef CSV_PREFS_CONTEXTMENUWIDGET_H
#define CSV_PREFS_CONTEXTMENUWIDGET_H
#include <string>
#include <QWidget>
class QContextMenuEvent;
namespace CSVPrefs
{
class ContextMenuWidget : public QWidget
{
Q_OBJECT
public:
ContextMenuWidget(const std::string& category, QWidget* parent = 0);
protected:
void contextMenuEvent(QContextMenuEvent* e);
private slots:
void resetCategory();
void resetAll();
private:
std::string mCategory;
};
}
#endif