[utilities/kteatime/release/26.08] src: Set window icon

Albert Astals Cid <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit c88302590f658185117783642b36f8df951a2ec8 by Albert Astals Cid, on behalf of Balló György.
Committed on 27/07/2026 at 00:03.
Pushed by aacid into branch 'release/26.08'.

Set window icon

This is commonly used by desktop environments on Xorg.

(cherry picked from commit df0b0ec6dad7a88a0c69f9dad7f5bca920d6db9a)

M  +2    -0    src/main.cpp

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

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.