2017-05-09 19:50:16 +12:00
|
|
|
#ifndef CSV_PREFS_CONTEXTMENULIST_H
|
|
|
|
#define CSV_PREFS_CONTEXTMENULIST_H
|
|
|
|
|
|
|
|
#include <QListWidget>
|
|
|
|
|
|
|
|
class QContextMenuEvent;
|
2017-05-12 20:22:18 +12:00
|
|
|
class QMouseEvent;
|
2017-05-09 19:50:16 +12:00
|
|
|
|
|
|
|
namespace CSVPrefs
|
|
|
|
{
|
|
|
|
class ContextMenuList : public QListWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
2020-06-22 10:05:25 +04:00
|
|
|
ContextMenuList(QWidget* parent = nullptr);
|
2017-05-09 19:50:16 +12:00
|
|
|
|
|
|
|
protected:
|
|
|
|
|
2020-10-16 22:18:54 +04:00
|
|
|
void contextMenuEvent(QContextMenuEvent* e) override;
|
2017-05-12 20:22:18 +12:00
|
|
|
|
2020-10-16 22:18:54 +04:00
|
|
|
void mousePressEvent(QMouseEvent* e) override;
|
2017-05-09 19:50:16 +12:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
|
|
|
|
void resetCategory();
|
|
|
|
|
|
|
|
void resetAll();
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|