We have been running Tape in two different cases.

The first inside own bundle where info.plist is works fine, but the second,
when we run inside Valentina's bundle, require direct setting the icon.

--HG--
branch : release
This commit is contained in:
Roman Telezhynskyi 2016-01-15 07:36:55 -08:00
parent 0fac22badb
commit 77dcb78e80
2 changed files with 7 additions and 5 deletions

View file

@ -223,9 +223,10 @@ MApplication::MApplication(int &argc, char **argv)
setOrganizationDomain(VER_COMPANYDOMAIN_STR);
// Setting the Application version
setApplicationVersion(APP_VERSION_STR);
#if !defined(Q_OS_MAC)
// We have been running Tape in two different cases.
// The first inside own bundle where info.plist is works fine, but the second,
// when we run inside Valentina's bundle, require direct setting the icon.
setWindowIcon(QIcon(":/tapeicon/64x64/logo.png"));
#endif // !defined(Q_OS_MAC)
}
//---------------------------------------------------------------------------------------------------------------------

View file

@ -289,8 +289,9 @@ unix{
templates.path = $$RESOURCES_DIR/tables/templates/
templates.files = $$INSTALL_STANDARD_TEMPLATES
format.path = $$RESOURCES_DIR/
format.files = $$PWD/../../../dist/macx/measurements.icns
icns_resources.path = $$RESOURCES_DIR/
icns_resources.files += $$PWD/../../../dist/macx/measurements.icns
icns_resources.files += $$PWD/../../../dist/Tape.icns
QMAKE_BUNDLE_DATA += \
templates \
@ -298,7 +299,7 @@ unix{
libraries \
tape \
xpdf \
format
icns_resources
}
}