mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2025-11-04 19:04:56 +11:00
core/log: track default logging categories
Fixes a bug in fb37be7 which ignored default logging categories due to
skipping QLoggingRegistry's filter.
This commit is contained in:
parent
5d7e07508a
commit
3d594e16dd
68 changed files with 212 additions and 79 deletions
|
|
@ -8,6 +8,7 @@
|
|||
#include <qobject.h>
|
||||
#include <qtmetamacros.h>
|
||||
|
||||
#include "../core/logcat.hpp"
|
||||
#include "../dbus/dbus_objectmanager_types.hpp"
|
||||
#include "../dbus/objectmanager.hpp"
|
||||
#include "adapter.hpp"
|
||||
|
|
@ -16,7 +17,7 @@
|
|||
namespace qs::bluetooth {
|
||||
|
||||
namespace {
|
||||
Q_LOGGING_CATEGORY(logBluetooth, "quickshell.bluetooth", QtWarningMsg);
|
||||
QS_LOGGING_CATEGORY(logBluetooth, "quickshell.bluetooth", QtWarningMsg);
|
||||
}
|
||||
|
||||
Bluez* Bluez::instance() {
|
||||
|
|
@ -156,7 +157,12 @@ void Bluez::onInterfacesRemoved(const QDBusObjectPath& path, const QStringList&
|
|||
}
|
||||
|
||||
BluezQml::BluezQml() {
|
||||
QObject::connect(Bluez::instance(), &Bluez::defaultAdapterChanged, this, &BluezQml::defaultAdapterChanged);
|
||||
QObject::connect(
|
||||
Bluez::instance(),
|
||||
&Bluez::defaultAdapterChanged,
|
||||
this,
|
||||
&BluezQml::defaultAdapterChanged
|
||||
);
|
||||
}
|
||||
|
||||
} // namespace qs::bluetooth
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue