The main advantage of SPDX license identifiers over the traditional license headers is that it's more difficult to overlook inappropriate licenses for kwin, for example GPL 3. We also don't have to copy a lot of boilerplate text. In order to create this change, I ran licensedigger -r -c from the toplevel source directory.
29 lines
780 B
C++
29 lines
780 B
C++
/*
|
|
* SPDX-FileCopyrightText: 2019 Valerio Pilo <vpilo@coldshock.net>
|
|
*
|
|
* SPDX-License-Identifier: LGPL-2.0-only
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <KDecoration2/DecorationButton>
|
|
#include <KSharedConfig>
|
|
|
|
#include <QVector>
|
|
|
|
|
|
using DecorationButtonsList = QVector<KDecoration2::DecorationButtonType>;
|
|
|
|
namespace Utils
|
|
{
|
|
|
|
QString buttonsToString(const DecorationButtonsList &buttons);
|
|
DecorationButtonsList buttonsFromString(const QString &buttons);
|
|
DecorationButtonsList readDecorationButtons(const KConfigGroup &config, const QString &key, const DecorationButtonsList &defaultValue);
|
|
|
|
KDecoration2::BorderSize stringToBorderSize(const QString &name);
|
|
QString borderSizeToString(KDecoration2::BorderSize size);
|
|
|
|
const QMap<KDecoration2::BorderSize, QString> &getBorderSizeNames();
|
|
|
|
}
|