mirror of
https://github.com/KDE/konsole.git
synced 2026-06-12 16:05:45 -04:00
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:
@@ -53,10 +53,7 @@
|
||||
#include "SessionManager.h"
|
||||
#include "ShellCommand.h"
|
||||
#include "TabTitleFormatAction.h"
|
||||
|
||||
// FIXME: it feels bad to include a big header file just
|
||||
// in order to use one of its static members.
|
||||
#include "TerminalDisplay.h"
|
||||
#include "WindowSystemInfo.h"
|
||||
|
||||
using namespace Konsole;
|
||||
|
||||
@@ -792,7 +789,7 @@ void EditProfileDialog::updateTransparencyWarning()
|
||||
" which does not appear to be supported on your"
|
||||
" desktop"));
|
||||
_ui->transparencyWarningWidget->setHidden(false);
|
||||
} else if (! TerminalDisplay::HAVE_TRANSPARENCY) {
|
||||
} else if (! WindowSystemInfo::HAVE_TRANSPARENCY) {
|
||||
_ui->transparencyWarningWidget->setText(i18n("Konsole was started before desktop effects were enabled."
|
||||
" You need to restart Konsole to see transparent background."));
|
||||
_ui->transparencyWarningWidget->setHidden(false);
|
||||
|
||||
Reference in New Issue
Block a user