[pim/trojita] src/Gui: Connect to signal instead of getter

Espen Sandøy Hustad <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit a357b7add731c6daf353eccb5519a3496f325665 by Espen Sandøy Hustad.
Committed on 03/08/2026 at 18:36.
Pushed by ehustad into branch 'master'.

Connect to signal instead of getter

Fix Clazy warning: QScreen::availableGeometry is not a
signal [-Wclazy-connect-non-signal]

M  +1    -1    src/Gui/Window.cpp

https://invent.kde.org/pim/trojita/-/commit/a357b7add731c6daf353eccb5519a3496f325665

diff --git a/src/Gui/Window.cpp b/src/Gui/Window.cpp
index c1dd671f1..9a028f8c2 100644
--- a/src/Gui/Window.cpp
+++ b/src/Gui/Window.cpp
@@ -228,7 +228,7 @@ MainWindow::MainWindow(QSettings *settings): QMainWindow(), m_imapAccess(nullptr
     delayedResize->setSingleShot(true);
     delayedResize->setInterval(500);
     connect(delayedResize, &QTimer::timeout, this, &MainWindow::desktopGeometryChanged);
-    connect(QGuiApplication::primaryScreen(), &QScreen::availableGeometry, delayedResize, static_cast<void (QTimer::*)()>(&QTimer::start));
+    connect(QGuiApplication::primaryScreen(), &QScreen::availableGeometryChanged, delayedResize, static_cast<void (QTimer::*)()>(&QTimer::start));
     m_skipSavingOfUI = false;
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.