Changeset 14431


Ignore:
Timestamp:
Jan 4, 2015, 2:14:58 AM (6 years ago)
Author:
mikedld
Message:

Use Faenza (1.3.1) as fallback on systems which do not support icon themes

Location:
trunk/qt
Files:
193 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/CMakeLists.txt

    r14415 r14431  
    117117)
    118118
    119 tr_qt_add_resources(${PROJECT_NAME}_QRC_SOURCES
    120     application.qrc
    121 )
     119set(${PROJECT_NAME}_QRC_FILES application.qrc)
     120if(WIN32 OR APPLE)
     121    list(APPEND ${PROJECT_NAME}_QRC_FILES icons/Faenza/Faenza.qrc)
     122endif()
     123
     124tr_qt_add_resources(${PROJECT_NAME}_QRC_SOURCES ${${PROJECT_NAME}_QRC_FILES})
    122125
    123126set(${PROJECT_NAME}_LINGUAS
  • trunk/qt/app.cc

    r14428 r14431  
    132132
    133133  Formatter::initUnits ();
     134
     135#if defined (_WIN32) || defined (__APPLE__)
     136  if (QIcon::themeName ().isEmpty ())
     137    QIcon::setThemeName ("Faenza");
     138#endif
    134139
    135140  // set the default icon
  • trunk/qt/qtr.pro

    r14428 r14431  
    6060         stats-dialog.ui
    6161RESOURCES += application.qrc
     62win32|macx:RESOURCES += icons/Faenza/Faenza.qrc
    6263SOURCES += about.cc \
    6364           add-data.cc \
Note: See TracChangeset for help on using the changeset viewer.