From d4d2341d77321286ecb7dc36e6db3afe21a35825 Mon Sep 17 00:00:00 2001 From: Skycoder42 Date: Mon, 8 Feb 2016 13:00:45 +0100 Subject: [PATCH] changed logcat name -> for .ini files... --- HotkeyTest/hottestwidget.h | 3 --- QHotkey/qhotkey.cpp | 2 +- README.md | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/HotkeyTest/hottestwidget.h b/HotkeyTest/hottestwidget.h index 3152e9f..8aaa78e 100644 --- a/HotkeyTest/hottestwidget.h +++ b/HotkeyTest/hottestwidget.h @@ -37,11 +37,8 @@ private slots: void on_resetButton_5_clicked(); void on_groupBox_toggled(bool checked); - void on_threadEnableCheckBox_clicked(); - void on_loggingCheckBox_clicked(bool checked); - private: Ui::HotTestWidget *ui; diff --git a/QHotkey/qhotkey.cpp b/QHotkey/qhotkey.cpp index dc5ce50..1a141fb 100644 --- a/QHotkey/qhotkey.cpp +++ b/QHotkey/qhotkey.cpp @@ -6,7 +6,7 @@ #include #include -Q_LOGGING_CATEGORY(logQHotkey, "[QHotkey]") +Q_LOGGING_CATEGORY(logQHotkey, "QHotkey") QHotkey::QHotkey(QObject *parent) : QObject(parent), diff --git a/README.md b/README.md index 1ec000d..0beec8f 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ By running the example in `./HotkeyTest` you can test out the QHotkey class. The ### Logging By default, QHotkey prints some warning messages if something goes wrong (For example, a key that cannot be translated). All messages of QHotkey are grouped into the [`QLoggingCategory`](https://doc.qt.io/qt-5/qloggingcategory.html) "[QHotkey]". If you want to simply disable the logging, call the folling function somewhere in your code: ```cpp -QLoggingCategory::setFilterRules(QStringLiteral("[QHotkey].warning=false")); +QLoggingCategory::setFilterRules(QStringLiteral("QHotkey.warning=false")); ``` This will turn all warnings of QHotkey of (It only uses warnings for now, thats why this is enough). For more information about all the things you can do with the logging categories, check the Qt-Documentation