mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-04 20:31:07 -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 */
|
/* bright green */
|
||||||
for(i = 1; i < 8; i++)
|
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)));
|
item -> setIcon(0,(QIcon(IMAGE_ONLINE)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -989,8 +992,12 @@ void PeersDialog::displayInfoChatMenu(const QPoint& pos)
|
|||||||
void PeersDialog::loadEmoticonsgroupchat()
|
void PeersDialog::loadEmoticonsgroupchat()
|
||||||
{
|
{
|
||||||
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::cerr << "Could not open resouce file :/emoticons/emotes.acs" << 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