Move TerminalDisplay::HAVE_TRANSPARNCEY into its own dedicated class

TerminalDisplay.h is a big header. It is not good for several files to
include that big header only in order to use one of its static member.
This commit is contained in:
Jekyll Wu
2012-02-23 22:18:06 +08:00
parent ff88a65ccd
commit ef62a0002b
8 changed files with 76 additions and 14 deletions

View File

@@ -40,7 +40,7 @@
#include "SessionManager.h"
#include "MainWindow.h"
#include "Session.h"
#include "TerminalDisplay.h"
#include "WindowSystemInfo.h"
#include "ViewManager.h"
using namespace Konsole;
@@ -55,7 +55,7 @@ void Application::init()
_backgroundInstance = 0;
// check for compositing functionality
TerminalDisplay::HAVE_TRANSPARENCY = KWindowSystem::compositingActive();
WindowSystemInfo::HAVE_TRANSPARENCY = KWindowSystem::compositingActive();
#if defined(Q_WS_MAC) && QT_VERSION >= 0x040600
// this ensures that Ctrl and Meta are not swapped, so CTRL-C and friends