[qrvthtool] Fix the window icon on Wayland.

On Wayland systems, the window icon is obtained from the .desktop file,
so we need to call QGuiApplication::setDesktopFileName().

QRvtHToolWindow.cpp: Update the Mac proxy icon comment.
This commit is contained in:
David Korth 2022-07-24 05:28:42 -04:00
parent 0ac25bfd59
commit 93b8a615fc
2 changed files with 3 additions and 2 deletions

View File

@ -85,6 +85,7 @@ int main(int argc, char *argv[])
app->setOrganizationDomain(QLatin1String("gerbilsoft.com"));
app->setOrganizationName(QLatin1String("GerbilSoft"));
app->setApplicationVersion(QLatin1String(VERSION_STRING));
app->setDesktopFileName(QLatin1String("qrvthtool.desktop"));
// Initialize the TranslationManager.
TranslationManager *const tsm = TranslationManager::instance();

View File

@ -519,8 +519,8 @@ QRvtHToolWindow::QRvtHToolWindow(QWidget *parent)
this->setAttribute(Qt::WA_DeleteOnClose, true);
#ifdef Q_OS_MAC
// Remove the window icon. (Mac "proxy icon")
// TODO: Use the memory card file?
// Mac OS: Remove the window icon initially.
// It will be set when a filename is selected.
this->setWindowIcon(QIcon());
#endif /* Q_OS_MAC */