From 452f44de24f24c9924a21d9a55e4dc3ec26abbd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mi=C5=82osz=20Kosobucki?= Date: Wed, 3 Jan 2024 13:53:07 +0100 Subject: [PATCH] Fix gui_window example compilation I remember making this fix but it got lost somewhere between my plethora of git branches and stashes. Like tears in rain. Change-Id: Id04629167263230a11a4496d788d4791d4f6c3b9 Reviewed-on: https://codereview.kdab.com/c/kdab/kdutils/+/135915 Tested-by: Continuous Integration Reviewed-by: Mike Krus --- examples/gui_window/gui_window.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/gui_window/gui_window.cpp b/examples/gui_window/gui_window.cpp index 7afbd04..cdefedb 100644 --- a/examples/gui_window/gui_window.cpp +++ b/examples/gui_window/gui_window.cpp @@ -18,7 +18,7 @@ class ExampleWindow : public KDGui::Window { spdlog::info("{}() buttons = {} at pos = ({}, {})", __FUNCTION__, - ev->buttons(), + ev->buttons().toInt(), ev->xPos(), ev->yPos()); } @@ -27,7 +27,7 @@ class ExampleWindow : public KDGui::Window { spdlog::info("{}() buttons = {} at pos = ({}, {})", __FUNCTION__, - ev->buttons(), + ev->buttons().toInt(), ev->xPos(), ev->yPos()); } @@ -36,7 +36,7 @@ class ExampleWindow : public KDGui::Window { spdlog::info("{}() buttons = {} at pos = ({}, {})", __FUNCTION__, - ev->buttons(), + ev->buttons().toInt(), ev->xPos(), ev->yPos()); }