added window icon for mac and win, refs #44

master
Nick Hangartner 14 years ago
parent 1024b04489
commit 9c3659ed61
  1. 30
      swisssurfer/src/Info.plist
  2. 2
      swisssurfer/src/main.cxx
  3. 3
      swisssurfer/src/qmake.pro.in
  4. 1
      swisssurfer/src/resources.qrc
  5. BIN
      swisssurfer/src/resources/icons/swisssurfer_32x32x32.png
  6. BIN
      swisssurfer/src/swisssurfer.icns

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>swisssurfer</string>
<key>CFBundleGetInfoString</key>
<string>SwissSign, (c) 2011</string>
<key>CFBundleIconFile</key>
<string>swisssurfer.icns</string>
<key>CFBundleIdentifier</key>
<string>com.swisssign.swisssurfer</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>SwissSurfer</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0.0</string>
<key>CFBundleSignature</key>
<string>SWSI</string>
<key>CFBundleVersion</key>
<string>1.0.0</string>
<key>NSAppleScriptEnabled</key>
<true/>
</dict>
</plist>

@ -246,6 +246,8 @@ int main(int argv, char** argc) try {
QTextCodec::setCodecForCStrings(utf8);
QTextCodec::setCodecForLocale(utf8);
QTextCodec::setCodecForTr(utf8);
app.setWindowIcon(QIcon(":/icons/appicon
"));
QApplication app(argv, argc);
QTranslator qtTranslator;
if (env.contains("LANGUAGE")) QLocale::setDefault(env["LANGUAGE"]);

@ -16,12 +16,15 @@ macx {
QMAKE_LFLAGS += -F/System/Library/Frameworks/PCSC.framework
LIBS += -framework PCSC
QMAKE_INCDIR += /System/Library/Frameworks/PCSC.framework/Headers
QMAKE_INFO_PLIST = Info.plist
CONFIG += x86
}
win32 {
QMAKE_LIBS += -lwinhttp -lgdi32 -lws2_32 -lwinscard
CONFIG += console
}
ICON = swisssurfer.icns
TRANSLATIONS = @PACKAGENAME@_en.ts \
@PACKAGENAME@_de.ts \
@PACKAGENAME@_fr.ts \

@ -1,5 +1,6 @@
<RCC>
<qresource prefix="icons" >
<file alias="appicon" >resources/icons/swisssurfer_32x32x32.png</file>
<file alias="up" >resources/icons/up.png</file>
<file alias="back" >resources/icons/back.png</file>
<file alias="forward" >resources/icons/forward.png</file>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.
Loading…
Cancel
Save