[plugins/platforms] Dedicated logging category for X11 standalone platform
This commit is contained in:
parent
11cca79ecf
commit
e5648dcf4c
4 changed files with 49 additions and 0 deletions
|
@ -8,6 +8,7 @@ kwin_wayland_framebuffer KWin Wayland (Framebuffer backend)
|
|||
kwin_wayland_hwcomposer KWin Wayland (hwcomposer backend)
|
||||
kwin_wayland_backend KWin Wayland (Wayland backend)
|
||||
kwin_wayland_x11windowed KWin Wayland (X11 backend)
|
||||
kwin_platform_x11_standalone KWin X11 Standalone Platform
|
||||
kwin_libinput KWin Libinput Integration
|
||||
kwin_tabbox KWin Window Switcher
|
||||
kwin_decorations KWin Decorations
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
set(X11PLATFORM_SOURCES
|
||||
logging.cpp
|
||||
x11_platform.cpp
|
||||
screens_xrandr.cpp
|
||||
)
|
||||
|
|
21
plugins/platforms/x11/standalone/logging.cpp
Normal file
21
plugins/platforms/x11/standalone/logging.cpp
Normal file
|
@ -0,0 +1,21 @@
|
|||
/********************************************************************
|
||||
KWin - the KDE window manager
|
||||
This file is part of the KDE project.
|
||||
|
||||
Copyright (C) 2016 Martin Gräßlin <mgraesslin@kde.org>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*********************************************************************/
|
||||
#include "logging.h"
|
||||
Q_LOGGING_CATEGORY(KWIN_X11STANDALONE, "kwin_platform_x11_standalone", QtCriticalMsg)
|
26
plugins/platforms/x11/standalone/logging.h
Normal file
26
plugins/platforms/x11/standalone/logging.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
/********************************************************************
|
||||
KWin - the KDE window manager
|
||||
This file is part of the KDE project.
|
||||
|
||||
Copyright (C) 2016 Martin Gräßlin <mgraesslin@kde.org>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*********************************************************************/
|
||||
#ifndef KWIN_X11_LOGGING_H
|
||||
#define KWIN_X11_LOGGING_H
|
||||
#include <QDebug>
|
||||
#include <QLoggingCategory>
|
||||
|
||||
Q_DECLARE_LOGGING_CATEGORY(KWIN_X11STANDALONE)
|
||||
#endif
|
Loading…
Reference in a new issue