guiqt.cpp: Set window icon for Linux.

pull/1451/head
Karl Robillard 2024-03-06 12:06:00 -05:00
parent f67c3e32dd
commit 0956bf3599
1 changed files with 6 additions and 0 deletions

View File

@ -1053,6 +1053,12 @@ int main(int argc, char** argv) {
QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts, true); QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts, true);
QApplication app(argc, argv); QApplication app(argc, argv);
#ifdef __linux
QIcon icon("/usr/share/icons/hicolor/48x48/apps/solvespace.png");
app.setWindowIcon(icon);
#endif
Platform::Open3DConnexion(); Platform::Open3DConnexion();
SS.Init(); SS.Init();