KTextAddons
7#include "textautogeneratecolorsandmessageviewstyle.h"
10using namespace TextAutogenerateText;
11TextAutogenerateColorsAndMessageViewStyle::TextAutogenerateColorsAndMessageViewStyle()
13 regenerateColorScheme();
14 qGuiApp->installEventFilter(
this);
17bool TextAutogenerateColorsAndMessageViewStyle::eventFilter(QObject *obj, QEvent *event)
21 regenerateColorScheme();
26TextAutogenerateColorsAndMessageViewStyle &TextAutogenerateColorsAndMessageViewStyle::self()
28 static TextAutogenerateColorsAndMessageViewStyle c;
32KColorScheme TextAutogenerateColorsAndMessageViewStyle::schemeView()
const
37KColorScheme TextAutogenerateColorsAndMessageViewStyle::schemeWindow()
const
42void TextAutogenerateColorsAndMessageViewStyle::regenerateColorScheme()
45 if (!(mSchemeWindow == colorScheme)) {
46 mSchemeView = KColorScheme();
47 mSchemeWindow = std::move(colorScheme);
48 Q_EMIT needToUpdateColors();
52#include "moc_textautogeneratecolorsandmessageviewstyle.cpp"
virtual bool event(QEvent *e)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri May 2 2025 12:06:03 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.