Changeset 136 in tspsg-svn for trunk/src


Ignore:
Timestamp:
Sep 14, 2010, 8:51:50 PM (14 years ago)
Author:
laleppa
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:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/globals.h

    r134 r136  
    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
  • trunk/src/main.cpp

    r134 r136  
    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.