Libplasma

utils.cpp
1/*
2 SPDX-FileCopyrightText: 2023 David Edmundson <davidedmundson@kde.org>
3 SPDX-License-Identifier: LGPL-2.0-or-later
4*/
5
6#include "utils.h"
7
8Qt::Edge PlasmaQuickPrivate::oppositeEdge(Qt::Edge edge)
9{
10 switch (edge) {
11 case Qt::TopEdge:
12 return Qt::BottomEdge;
13 case Qt::BottomEdge:
14 return Qt::TopEdge;
15 case Qt::LeftEdge:
16 return Qt::RightEdge;
17 case Qt::RightEdge:
18 return Qt::LeftEdge;
19 }
20 Q_UNREACHABLE();
21}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:35 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.