mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-18 04:10:06 +00:00
37 lines
604 B
C++
37 lines
604 B
C++
#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
|