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:
|
|
|
|
|
2020-06-22 06:05:25 +00:00
|
|
|
ContextMenuList(QWidget* parent = nullptr);
|
2017-05-09 07:50:16 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
|
2020-10-16 18:18:54 +00:00
|
|
|
void contextMenuEvent(QContextMenuEvent* e) override;
|
2017-05-12 08:22:18 +00:00
|
|
|
|
2020-10-16 18:18:54 +00:00
|
|
|
void mousePressEvent(QMouseEvent* e) override;
|
2017-05-09 07:50:16 +00:00
|
|
|
|
|
|
|
private slots:
|
|
|
|
|
|
|
|
void resetCategory();
|
|
|
|
|
|
|
|
void resetAll();
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|