qt6: build is fixed now

This commit is contained in:
Sergio Martins
2020-12-08 21:47:35 +00:00
parent f475312f11
commit 89635d8b98
5 changed files with 33 additions and 7 deletions

View File

@@ -19,15 +19,15 @@
#ifndef KD_KDDOCKWIDGETS_H
#define KD_KDDOCKWIDGETS_H
#include "Qt5Qt6Compat_p.h"
#include <QObject>
#ifdef Q_OS_WIN
// Only on Windows, where this is popular. On linux it the Qt::Tool windows need reparenting. Untested on macOS.
// Only on Windows, where this is popular. On linux the Qt::Tool windows need reparenting. Untested on macOS.
# define KDDOCKWIDGETS_SUPPORTS_NESTED_MAINWINDOWS
#endif
namespace KDDockWidgets
{
enum Location {
@@ -120,7 +120,7 @@ namespace KDDockWidgets
};
///@internal
inline uint qHash(SideBarLocation loc, uint seed)
inline Qt5Qt6Compat::qhashtype qHash(SideBarLocation loc, Qt5Qt6Compat::qhashtype seed)
{
return ::qHash(static_cast<uint>(loc), seed);
}