1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-24 00:23:53 +00:00
openmw/apps/opencs/view/world/tableheadermouseeventhandler.hpp

31 lines
587 B
C++
Raw Normal View History

2021-09-19 17:07:54 +00:00
#pragma once
2022-10-19 17:02:00 +00:00
#include <QWidget>
class QEvent;
class QHeaderView;
class QMenu;
class QObject;
class QPoint;
2021-09-19 17:07:54 +00:00
namespace CSVWorld
{
2022-09-22 18:26:05 +00:00
class DragRecordTable;
2021-09-19 17:07:54 +00:00
2022-09-22 18:26:05 +00:00
class TableHeaderMouseEventHandler : public QWidget
{
public:
explicit TableHeaderMouseEventHandler(DragRecordTable* parent);
2021-09-19 17:07:54 +00:00
2022-09-22 18:26:05 +00:00
void showContextMenu(const QPoint&);
2021-09-19 17:07:54 +00:00
2022-09-22 18:26:05 +00:00
private:
DragRecordTable& table;
QHeaderView& header;
2021-09-19 17:07:54 +00:00
2022-09-22 18:26:05 +00:00
QMenu& createContextMenu();
bool eventFilter(QObject*, QEvent*) override;
2021-09-19 17:07:54 +00:00
2022-09-22 18:26:05 +00:00
}; // class TableHeaderMouseEventHandler
2021-09-19 17:07:54 +00:00
} // namespace CSVWorld