2017-05-09 07:50:16 +00:00
|
|
|
#ifndef CSV_PREFS_CONTEXTMENULIST_H
|
|
|
|
#define CSV_PREFS_CONTEXTMENULIST_H
|
|
|
|
|
|
|
|
#include <QListWidget>
|
|
|
|
|
|
|
|
class QContextMenuEvent;
|
2017-05-12 08:22:18 +00:00
|
|
|
class QMouseEvent;
|
2017-05-09 07:50:16 +00:00
|
|
|
|
|
|
|
namespace CSVPrefs
|
|
|
|
{
|
|
|
|
class ContextMenuList : public QListWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
ContextMenuList(QWidget* parent = 0);
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
void contextMenuEvent(QContextMenuEvent* e);
|
2017-05-12 08:22:18 +00:00
|
|
|
|
|
|
|
void mousePressEvent(QMouseEvent* e);
|
2017-05-09 07:50:16 +00:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
|
|
|
|
void resetCategory();
|
|
|
|
|
|
|
|
void resetAll();
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|