Skip to content

Commit

Permalink
Fix building with Qt 5
Browse files Browse the repository at this point in the history
  • Loading branch information
hluk committed Nov 4, 2024
1 parent fd0ab2e commit d7a181d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/common/navigationstyle.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
// SPDX-License-Identifier: GPL-3.0-or-later
#pragma once

#include <QtGlobal>
#if QT_VERSION < QT_VERSION_CHECK(6,0,0)
# include <QMetaType>
#endif

enum class NavigationStyle {
Default,
Vi,
Emacs
};

#if QT_VERSION < QT_VERSION_CHECK(6,0,0)
Q_DECLARE_METATYPE(NavigationStyle)
#endif

0 comments on commit d7a181d

Please sign in to comment.