Changeset cac8759dba in tspsg for src


Ignore:
Timestamp:
Sep 14, 2010, 8:51:50 PM (14 years ago)
Author:
Oleksii Serdiuk
Branches:
0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
Children:
f29549ec20
Parents:
a713b103e8
git-author:
Oleksii Serdiuk <contacts@…> (09/14/10 20:51:50)
git-committer:
Oleksii Serdiuk <contacts@…> (06/29/12 19:45:57)
Message:

Moved to using 32x32 icons on handheld platforms and SVG on desktop ones.
This makes handheld version smaller in size.
128x128 PNG icons are still used if CONFIG+=nosvg parameter is given to qmake.

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/globals.h

    ra713b103e8 rcac8759dba  
    125125#endif // Q_OS_WIN32
    126126
     127#ifndef DOXYGEN_EXCLUDE
     128
     129#ifdef HANDHELD
     130        #define ICON_SIZE "32x32"
     131        #define ICON_FORMAT "png"
     132#elif !defined(NOSVG)
     133        #define ICON_SIZE "scalable"
     134        #define ICON_FORMAT "svgz"
     135#else
     136        #define ICON_SIZE "128x128"
     137        #define ICON_FORMAT "png"
     138#endif
     139
    127140#if QT_VERSION >= 0x040600
    128         #define GET_ICON(x) QIcon::fromTheme(x, QIcon(":/images/icons/"x".png"))
     141        #define GET_ICON(x) QIcon::fromTheme(x, QIcon(":/images/icons/"ICON_SIZE"/"x"."ICON_FORMAT))
    129142#else
    130         #define GET_ICON(x) QIcon(":/images/icons/"x".png")
     143        #define GET_ICON(x) QIcon(":/images/icons/"ICON_SIZE"/"x"."ICON_FORMAT)
    131144#endif
    132145
     
    148161#endif
    149162
     163#endif // DOXYGEN_EXCLUDE
     164
    150165#endif // GLOBALS_H
  • src/main.cpp

    ra713b103e8 rcac8759dba  
    3434
    3535//#ifdef STATIC_BUILD
     36//      #ifndef NOSVG
     37//              Q_IMPORT_PLUGIN(qsvgicon)
     38//      #endif
    3639//      Q_IMPORT_PLUGIN(qjpeg)
    3740//      Q_IMPORT_PLUGIN(qtiff)
Note: See TracChangeset for help on using the changeset viewer.