mirror of
https://github.com/OpenMW/openmw.git
synced 2025-11-30 08:04:30 +00:00
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
| ^
33 lines
724 B
C++
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
|