#ifndef CSV_PREFS_CONTEXTMENUWIDGET_H #define CSV_PREFS_CONTEXTMENUWIDGET_H #include #include 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