summary refs log tree commit diff
path: root/src/Logging.cpp
diff options
context:
space:
mode:
authoradasauce <60991921+adasauce@users.noreply.github.com>2020-04-09 22:05:48 -0300
committerGitHub <noreply@github.com>2020-04-09 22:05:48 -0300
commit5f7f564e572110dc140a051aa51131ed504a67ab (patch)
treed4985d2954ff17c0410c66d1ba45eb7d863060e5 /src/Logging.cpp
parentMerge pull request #160 from cloudrac3r/ubuntu-19.10-dependencies (diff)
parentAdd comment on why we surpress some of those log messages (diff)
downloadnheko-5f7f564e572110dc140a051aa51131ed504a67ab.tar.xz
Merge pull request #161 from Nheko-Reborn/palettes
Use palettes for most theming
Diffstat (limited to 'src/Logging.cpp')
-rw-r--r--src/Logging.cpp17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/Logging.cpp b/src/Logging.cpp

index 5d64a630..b63c2e5a 100644 --- a/src/Logging.cpp +++ b/src/Logging.cpp
@@ -25,11 +25,18 @@ qmlMessageHandler(QtMsgType type, const QMessageLogContext &context, const QStri const char *file = context.file ? context.file : ""; const char *function = context.function ? context.function : ""; - // Surpress binding wrning for now, as we can't set restore mode to keep compat with qt 5.10 - if (msg.endsWith( - "QML Binding: Not restoring previous value because restoreMode has not been set.This " - "behavior is deprecated.In Qt < 6.0 the default is Binding.RestoreBinding.In Qt >= " - "6.0 the default is Binding.RestoreBindingOrValue.")) + if ( + // Surpress binding wrning for now, as we can't set restore mode to keep compat with + // qt 5.10 + msg.endsWith( + "QML Binding: Not restoring previous value because restoreMode has not been set.This " + "behavior is deprecated.In Qt < 6.0 the default is Binding.RestoreBinding.In Qt >= " + "6.0 the default is Binding.RestoreBindingOrValue.") || + // The default style has the point size set. If you use pixel size anywhere, you get + // that warning, which is useless, since sometimes you need the pixel size to match the + // text to the size of the outer element for example. This is done in the avatar and + // without that you get one warning for every Avatar displayed, which is stupid! + msg.endsWith("Both point size and pixel size set. Using pixel size.")) return; switch (type) {