1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-11-30 08:04:30 +00:00
openmw/apps/opencs/view/world/tableheadermouseeventhandler.hpp
elsid feb9cc004c
Fix portability-avoid-pragma-once warnings
components/misc/helpviewer.hpp:1:1: error: avoid 'pragma once' directive; use include guards instead [portability-avoid-pragma-once,-warnings-as-errors]
    1 | #pragma once
      | ^

apps/opencs/view/world/tableheadermouseeventhandler.hpp:1:1: error: avoid 'pragma once' directive; use include guards instead [portability-avoid-pragma-once,-warnings-as-errors]
    1 | #pragma once
      | ^
2025-11-25 21:16:50 +01:00

33 lines
724 B
C++

#ifndef OPENMW_APPS_OPENCS_VIEW_WORLD_TABLEHEADERMOUSEEVENTHANDLER_HPP
#define OPENMW_APPS_OPENCS_VIEW_WORLD_TABLEHEADERMOUSEEVENTHANDLER_HPP
#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
#endif