Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
Remove krita.input logging category
Dmitry Kazakove10d0a2638c3
diff --git a/libs/global/kis_debug.cpp b/libs/global/kis_debug.cppindex a1c73b3f84..f09927ce3b 100644--- a/libs/global/kis_debug.cpp+++ b/libs/global/kis_debug.cpp@@ -84,7 +84,6 @@ Q_LOGGING_CATEGORY(_41008, "krita.file", QtInfoMsg)Q_LOGGING_CATEGORY(_41009, "krita.math", QtInfoMsg)Q_LOGGING_CATEGORY(_41010, "krita.render", QtInfoMsg)Q_LOGGING_CATEGORY(_41011, "krita.scripting", QtInfoMsg)-Q_LOGGING_CATEGORY(_41012, "krita.input", QtInfoMsg)Q_LOGGING_CATEGORY(_41013, "krita.action", QtInfoMsg)Q_LOGGING_CATEGORY(_41014, "krita.tabletlog", QtDebugMsg)Q_LOGGING_CATEGORY(_41015, "krita.opengl", QtInfoMsg)diff --git a/libs/global/kis_debug.h b/libs/global/kis_debug.hindex 07ceab2427..adff65963f 100644--- a/libs/global/kis_debug.h+++ b/libs/global/kis_debug.h@@ -32,7 +32,6 @@ extern const KRITAGLOBAL_EXPORT QLoggingCategory &_41008();extern const KRITAGLOBAL_EXPORT QLoggingCategory &_41009();extern const KRITAGLOBAL_EXPORT QLoggingCategory &_41010();extern const KRITAGLOBAL_EXPORT QLoggingCategory &_41011();-extern const KRITAGLOBAL_EXPORT QLoggingCategory &_41012();extern const KRITAGLOBAL_EXPORT QLoggingCategory &_41013();extern const KRITAGLOBAL_EXPORT QLoggingCategory &_41014();extern const KRITAGLOBAL_EXPORT QLoggingCategory &_41015();@@ -59,7 +58,6 @@ extern const KRITAGLOBAL_EXPORT QLoggingCategory &_41021();#define dbgMath qCDebug(_41009)#define dbgRender qCDebug(_41010)#define dbgScript qCDebug(_41011)-#define dbgInput qCDebug(_41012)#define dbgAction qCDebug(_41013)#define dbgTablet qCDebug(_41014)#define dbgOpenGL qCDebug(_41015)@@ -84,7 +82,6 @@ extern const KRITAGLOBAL_EXPORT QLoggingCategory &_41021();#define infoMath qCInfo(_41009)#define infoRender qCInfo(_41010)#define infoScript qCInfo(_41011)-#define infoInput qCInfo(_41012)#define infoAction qCInfo(_41013)#define infoTablet qCInfo(_41014)#define infoOpenGL qCInfo(_41015)@@ -106,7 +103,6 @@ extern const KRITAGLOBAL_EXPORT QLoggingCategory &_41021();#define warnMath qCWarning(_41009)#define warnRender qCWarning(_41010)#define warnScript qCWarning(_41011)-#define warnInput qCWarning(_41012)#define warnAction qCWarning(_41013)#define warnTablet qCWarning(_41014)#define warnOpenGL qCWarning(_41015)@@ -128,7 +124,6 @@ extern const KRITAGLOBAL_EXPORT QLoggingCategory &_41021();#define errMath qCCritical(_41009)#define errRender qCCritical(_41010)#define errScript qCCritical(_41011)-#define errInput qCCritical(_41012)#define errAction qCCritical(_41013)#define errTablet qCCritical(_41014)#define errOpenGL qCCritical(_41015)@@ -151,7 +146,6 @@ extern const KRITAGLOBAL_EXPORT QLoggingCategory &_41021();#define fatalMath qCFatal(_41009)#define fatalRender qCFatal(_41010)#define fatalScript qCFatal(_41011)-#define fatalInput qCFatal(_41012)#define fatalAction qCDebug(_41013)*/diff --git a/libs/ui/input/kis_abstract_input_action.cpp b/libs/ui/input/kis_abstract_input_action.cppindex 559ee6f472..e8571b29cf 100644--- a/libs/ui/input/kis_abstract_input_action.cpp+++ b/libs/ui/input/kis_abstract_input_action.cpp@@ -207,7 +207,7 @@ QPoint KisAbstractInputAction::eventPos(const QEvent *event)}default:- warnInput << "KisAbstractInputAction" << d->name << "tried to process event data from an unhandled event type" << event->type();+ warnUI << "KisAbstractInputAction" << d->name << "tried to process event data from an unhandled event type" << event->type();return QPoint();}}@@ -255,7 +255,7 @@ QPointF KisAbstractInputAction::eventPosF(const QEvent *event) {#endif}default:- warnInput << "KisAbstractInputAction" << d->name << "tried to process event data from an unhandled event type" << event->type();+ warnUI << "KisAbstractInputAction" << d->name << "tried to process event data from an unhandled event type" << event->type();return QPointF();}}diff --git a/libs/ui/input/kis_input_manager.cpp b/libs/ui/input/kis_input_manager.cppindex 1cb1c7ea03..fa5369d4f0 100644--- a/libs/ui/input/kis_input_manager.cpp+++ b/libs/ui/input/kis_input_manager.cpp@@ -899,6 +899,6 @@ void KisInputManager::profileChanged()}}else {- dbgInput << "No Input Profile Found: canvas interaction will be impossible";+ warnUI << "No Input Profile Found: canvas interaction will be impossible";}}diff --git a/plugins/dockers/logdocker/LogDockerDock.cpp b/plugins/dockers/logdocker/LogDockerDock.cppindex c78b29b26d..9dec348d42 100644--- a/plugins/dockers/logdocker/LogDockerDock.cpp+++ b/plugins/dockers/logdocker/LogDockerDock.cpp@@ -292,10 +292,6 @@ void LogDockerDock::settings()chkScript->setChecked(cfg.readEntry("script_41011", false));layout->addWidget(chkScript);- QCheckBox *chkInput = new QCheckBox(i18n("Input handling"), page);- chkInput->setChecked(cfg.readEntry("input_41012", false));- layout->addWidget(chkInput);-QCheckBox *chkAction = new QCheckBox(i18n("Actions"), page);chkAction->setChecked(cfg.readEntry("action_41013", false));layout->addWidget(chkAction);@@ -344,7 +340,6 @@ void LogDockerDock::settings()cfg.writeEntry("math_41009", chkMath->isChecked());cfg.writeEntry("render_41010", chkRender->isChecked());cfg.writeEntry("script_41011", chkScript->isChecked());- cfg.writeEntry("input_41012", chkInput->isChecked());cfg.writeEntry("action_41013", chkAction->isChecked());cfg.writeEntry("tablet_41014", chkTablet->isChecked());cfg.writeEntry("input_eater_41019", chkInputEater->isChecked());@@ -399,7 +394,6 @@ void LogDockerDock::applyCategories()filters << cfgToString("krita.math", cfg.readEntry("math_41009", false));filters << cfgToString("krita.grender", cfg.readEntry("render_41010", false));filters << cfgToString("krita.scripting", cfg.readEntry("script_41011", false));- filters << cfgToString("krita.input", cfg.readEntry("input_41012", false));filters << cfgToString("krita.action", cfg.readEntry("action_41013", false));filters << cfgToString("krita.tablet", cfg.readEntry("tablet_41014", false));filters << cfgToString("krita.input.eater", cfg.readEntry("input_eater_41019", false));