1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-01 03:21:41 +00:00
OpenMW/apps/opencs/view/world/tableheadermouseeventhandler.hpp
2022-10-31 21:04:01 +01:00

31 lines
587 B
C++

#pragma once
#include <QWidget>
class QEvent;
class QHeaderView;
class QMenu;
class QObject;
class QPoint;
namespace CSVWorld
{
class DragRecordTable;
class TableHeaderMouseEventHandler : public QWidget
{
public:
explicit TableHeaderMouseEventHandler(DragRecordTable* parent);
void showContextMenu(const QPoint&);
private:
DragRecordTable& table;
QHeaderView& header;
QMenu& createContextMenu();
bool eventFilter(QObject*, QEvent*) override;
}; // class TableHeaderMouseEventHandler
} // namespace CSVWorld