Changeset 192:e5f4b381ba0c in qutecom-coip


Ignore:
Timestamp:
Mar 28, 2010 11:19:46 AM (3 years ago)
Author:
laurent@…
Branch:
default
Message:

fix resources dir

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gui/src/chat/chattheme.cpp

    r177 r192  
    11#include "chattheme.h" 
    2  
     2#include <util/Path.h> 
    33static const char KEYWORD_CHAR = '%'; 
    44 
     
    6464QString ChatTheme::getThemePath() 
    6565{ 
    66         QString baseDir = "/SourceCache/qutecom-coip/debug/debug/QuteCom.app/Contents/Resources"; 
    67 #if defined(OS_WINDOWS) 
     66#if defined(WIN32) 
     67        QString baseDir = QString::fromStdString(Path::getApplicationDirPath()); 
    6868        baseDir = baseDir.replace("\\","/"); 
     69#elif defined(OS_MACOSX) 
     70        QString baseDir = QString::fromStdString(Path::getApplicationResourcesDirPath()); 
    6971#endif 
    7072         
Note: See TracChangeset for help on using the changeset viewer.