mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-17 04:51:48 +00:00
Changed: Use PNG icons under Linux, see #279
This commit is contained in:
parent
20bd5dbea1
commit
d2f9358fb7
2 changed files with 7 additions and 2 deletions
|
@ -97,9 +97,11 @@ void CProfile::createShortcuts() const
|
||||||
QString icon;
|
QString icon;
|
||||||
|
|
||||||
#ifdef Q_OS_WIN32
|
#ifdef Q_OS_WIN32
|
||||||
|
// under Windows, icon is included in executable
|
||||||
icon = executable;
|
icon = executable;
|
||||||
#else
|
#else
|
||||||
// TODO: Linux icon
|
// icon is in the same directory as client
|
||||||
|
icon = s.getDirectory() + "/ryzom_client.png";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (desktopShortcut)
|
if (desktopShortcut)
|
||||||
|
|
|
@ -718,6 +718,7 @@ void COperationDialog::copyInstaller()
|
||||||
QStringList filter;
|
QStringList filter;
|
||||||
filter << "msvcp100.dll";
|
filter << "msvcp100.dll";
|
||||||
filter << "msvcr100.dll";
|
filter << "msvcr100.dll";
|
||||||
|
filter << "ryzom_installer.png";
|
||||||
|
|
||||||
CFilesCopier copier(this);
|
CFilesCopier copier(this);
|
||||||
copier.setIncludeFilter(filter);
|
copier.setIncludeFilter(filter);
|
||||||
|
@ -756,9 +757,11 @@ void COperationDialog::copyInstaller()
|
||||||
QString icon;
|
QString icon;
|
||||||
|
|
||||||
#ifdef Q_OS_WIN32
|
#ifdef Q_OS_WIN32
|
||||||
|
// under Windows, icon is included in executable
|
||||||
icon = executable;
|
icon = executable;
|
||||||
#else
|
#else
|
||||||
// TODO: Linux icon
|
// icon is in the same directory as installer
|
||||||
|
icon = config->getInstallationDirectory() + "/ryzom_installer.png";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
createLink(shortcut, name, executable, "", icon, "");
|
createLink(shortcut, name, executable, "", icon, "");
|
||||||
|
|
Loading…
Reference in a new issue