mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
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:
parent
607eb9bb2b
commit
71b9391c20
1 changed files with 6 additions and 2 deletions
|
@ -389,8 +389,12 @@ void PopupChatDialog::loadEmoticons2()
|
|||
void PopupChatDialog::loadEmoticons()
|
||||
{
|
||||
QString sm_codes;
|
||||
QFile sm_file(QApplication::applicationDirPath() + "/emoticons/emotes.acs");
|
||||
sm_file.open(QIODevice::ReadOnly);
|
||||
QFile sm_file(QString(":/emoticons/emotes.acs"));
|
||||
if(!sm_file.open(QIODevice::ReadOnly))
|
||||
{
|
||||
std::cout << "error opening ressource file" << std::endl ;
|
||||
return ;
|
||||
}
|
||||
sm_codes = sm_file.readAll();
|
||||
sm_file.close();
|
||||
sm_codes.remove("\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue