compliance with qrc file for emoticons

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

View File

@ -333,7 +333,10 @@ void PeersDialog::insertPeers()
/* bright green */
for(i = 1; i < 8; i++)
{
//item -> setBackground(i,QBrush(Qt::green));
// CsoLer: I uncommented the color because it's really confortable
// to be able to see at some distance that people are connected.
// The blue/gray icons need a close look indeed.
item -> setBackground(i,QBrush(Qt::green));
item -> setIcon(0,(QIcon(IMAGE_ONLINE)));
}
}
@ -989,8 +992,12 @@ void PeersDialog::displayInfoChatMenu(const QPoint& pos)
void PeersDialog::loadEmoticonsgroupchat()
{
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::cerr << "Could not open resouce file :/emoticons/emotes.acs" << endl ;
return ;
}
sm_codes = sm_file.readAll();
sm_file.close();
sm_codes.remove("\n");