From aba5e2127130094d7e194f146dadeb8b1b80e2db Mon Sep 17 00:00:00 2001 From: Dmytro Bogovych Date: Mon, 22 May 2023 11:13:01 +0300 Subject: [PATCH] - add debug build script + don't set the default tray icon tooltip --- app/mainwindow.cpp | 5 +++-- scripts/build_linux_qt6_debug.sh | 12 ++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100755 scripts/build_linux_qt6_debug.sh diff --git a/app/mainwindow.cpp b/app/mainwindow.cpp index 7a848ee..393fcd5 100644 --- a/app/mainwindow.cpp +++ b/app/mainwindow.cpp @@ -286,10 +286,11 @@ void MainWindow::createTrayIcon() mTrayIcon->setContextMenu(menu); mTrayIcon->setIcon(getTrayIcon()); - mTrayIcon->setToolTip(AppName); - mTrayIcon->show(); + // mTrayIcon->setToolTip(AppName); connect(mTrayIcon, SIGNAL(activated(QSystemTrayIcon::ActivationReason)), this, SLOT(onTrayIconActivated(QSystemTrayIcon::ActivationReason))); + + mTrayIcon->show(); } static int msec2min(int msec) diff --git a/scripts/build_linux_qt6_debug.sh b/scripts/build_linux_qt6_debug.sh new file mode 100755 index 0000000..14599cb --- /dev/null +++ b/scripts/build_linux_qt6_debug.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# I use this script on two different hosts so there are logic to find proper Qt installation + +export QT_HOME=/home/$USER/tools/qt/6.4.2/gcc_64 +if [ ! -d "$QT_HOME" ] ; then + export QT_HOME=/home/$USER/tools/qt/6.4.2/gcc_64 +fi + +# Build .appimage +/usr/bin/python3 build_qbreak.py debug +