diff --git a/src/KDDockWidgets_p.h b/src/KDDockWidgets_p.h new file mode 100644 index 00000000..a3e332e4 --- /dev/null +++ b/src/KDDockWidgets_p.h @@ -0,0 +1,41 @@ +/* + This file is part of KDDockWidgets. + + SPDX-FileCopyrightText: 2019-2022 Klarälvdalens Datakonsult AB, a KDAB Group company + Author: Sérgio Martins + + SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only + + Contact KDAB at for commercial licensing options. +*/ + +#ifndef KD_KDDOCKWIDGETS_P_H +#define KD_KDDOCKWIDGETS_P_H +#pragma once + +#include "KDDockWidgets.h" +#include + +namespace KDDockWidgets { + +inline QString locationStr(Location loc) +{ + switch (loc) { + case KDDockWidgets::Location_None: + return QStringLiteral("none"); + case KDDockWidgets::Location_OnLeft: + return QStringLiteral("left"); + case KDDockWidgets::Location_OnTop: + return QStringLiteral("top"); + case KDDockWidgets::Location_OnRight: + return QStringLiteral("right"); + case KDDockWidgets::Location_OnBottom: + return QStringLiteral("bottom"); + } + + return QString(); +} + +} + +#endif