mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-02 19:31:04 -05:00
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:
parent
71b9391c20
commit
0bc0c37827
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user