Feature request #2273
patch to have a single window icon on Microsoft Windows
|Pull Request or Patch supplied:
|Copied to github as #:
On Windows builds of QGIS I have noticed that there are two slightly different window icons in various windows. This is not the case for Linux builds.
I found that a main window icon is set in QgisApp. For Microsoft Windows there is an icon placed in a resource file, which becomes the application icon. The main window icon is displayed on the QGIS main window and for any window it owns. The application icon (from the resource) is used for all windows not owned by the main window.
It is better if an application icon is set on the QApplication object so all windows inherit this icon unless a different icon is set for a window.
This patch removes the window icon set in QgisApp. For Linux/Mac it sets the application icon in the constructor of QgsApplication. For Windows, the icon in the resource is the application icon (no icon is set in QgsApplication).