diff --git a/sources/.clang-format b/sources/.clang-format index b4b4e86..a3de373 100644 --- a/sources/.clang-format +++ b/sources/.clang-format @@ -21,7 +21,7 @@ BreakBeforeBinaryOperators: All BreakBeforeBraces: Linux BreakBeforeTernaryOperators: true BreakConstructorInitializersBeforeComma: true -ColumnLimit: 80 +ColumnLimit: 100 CommentPragmas: '^ IWYU pragma:' ConstructorInitializerAllOnOneLineOrOnePerLine: false ConstructorInitializerIndentWidth: 4 diff --git a/sources/CMakeLists.txt b/sources/CMakeLists.txt index 80d2ebc..d5b6fe4 100644 --- a/sources/CMakeLists.txt +++ b/sources/CMakeLists.txt @@ -6,6 +6,9 @@ cmake_policy(SET CMP0015 NEW) if (POLICY CMP0063) cmake_policy(SET CMP0063 OLD) endif () +if (POLICY CMP0071) + cmake_policy(SET CMP0071 NEW) +endif () project(awesomewidgets) set(PROJECT_AUTHOR "Evgeniy Alekseev") diff --git a/sources/awdebug.cpp b/sources/awdebug.cpp index 84c14ba..852b18d 100644 --- a/sources/awdebug.cpp +++ b/sources/awdebug.cpp @@ -21,16 +21,12 @@ #include "awdebug.h" -Q_LOGGING_CATEGORY(LOG_AW, "org.kde.plasma.awesomewidget", - QtMsgType::QtWarningMsg) +Q_LOGGING_CATEGORY(LOG_AW, "org.kde.plasma.awesomewidget", QtMsgType::QtWarningMsg) Q_LOGGING_CATEGORY(LOG_DBUS, "org.kde.plasma.awdbus", QtMsgType::QtWarningMsg) -Q_LOGGING_CATEGORY(LOG_DP, "org.kde.plasma.desktoppanel", - QtMsgType::QtWarningMsg) +Q_LOGGING_CATEGORY(LOG_DP, "org.kde.plasma.desktoppanel", QtMsgType::QtWarningMsg) Q_LOGGING_CATEGORY(LOG_ESM, "org.kde.plasma.extsysmon", QtMsgType::QtWarningMsg) -Q_LOGGING_CATEGORY(LOG_ESS, "org.kde.plasma.extsysmonsources", - QtMsgType::QtWarningMsg) -Q_LOGGING_CATEGORY(LOG_LIB, "org.kde.plasma.awesomewidgets", - QtMsgType::QtWarningMsg) +Q_LOGGING_CATEGORY(LOG_ESS, "org.kde.plasma.extsysmonsources", QtMsgType::QtWarningMsg) +Q_LOGGING_CATEGORY(LOG_LIB, "org.kde.plasma.awesomewidgets", QtMsgType::QtWarningMsg) QString AWDebug::getAboutText(const QString &_type) @@ -46,15 +42,9 @@ QString AWDebug::getAboutText(const QString &_type) text = i18n("A set of minimalistic plasmoid widgets"); } else if (_type == "links") { text = i18n("Links:") + "