[utilities/kteatime] src: Set window icon

Balló György <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit df0b0ec6dad7a88a0c69f9dad7f5bca920d6db9a by Balló György.
Committed on 26/07/2026 at 07:17.
Pushed by aacid into branch 'master'.

Set window icon

This is commonly used by desktop environments on Xorg.

M  +2    -0    src/main.cpp

https://invent.kde.org/utilities/kteatime/-/commit/df0b0ec6dad7a88a0c69f9dad7f5bca920d6db9a

diff --git a/src/main.cpp b/src/main.cpp
index 8a02383..4fad29b 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -55,6 +55,8 @@ int main(int argc, char *argv[])
 
     app.setQuitOnLastWindowClosed(false);
 
+    QApplication::setWindowIcon(QIcon::fromTheme(QStringLiteral("kteatime")));
+
     /**
      * Create command line parser and feed it with known options
      */
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.