mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-23 22:49:37 -05: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
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user