Put emoticon images and .acs file into qrc image file

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@945 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2009-01-25 14:00:45 +00:00
parent 607eb9bb2b
commit 71b9391c20

View File

@ -389,8 +389,12 @@ void PopupChatDialog::loadEmoticons2()
void PopupChatDialog::loadEmoticons() void PopupChatDialog::loadEmoticons()
{ {
QString sm_codes; QString sm_codes;
QFile sm_file(QApplication::applicationDirPath() + "/emoticons/emotes.acs"); QFile sm_file(QString(":/emoticons/emotes.acs"));
sm_file.open(QIODevice::ReadOnly); if(!sm_file.open(QIODevice::ReadOnly))
{
std::cout << "error opening ressource file" << std::endl ;
return ;
}
sm_codes = sm_file.readAll(); sm_codes = sm_file.readAll();
sm_file.close(); sm_file.close();
sm_codes.remove("\n"); sm_codes.remove("\n");