restored PeersDialog.cpp

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1029 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2009-02-09 14:09:25 +00:00
parent bf48cc83aa
commit 9602f07760

View File

@ -123,13 +123,7 @@ PeersDialog::PeersDialog(QWidget *parent)
loadEmoticonsgroupchat(); loadEmoticonsgroupchat();
connect(ui.toolButtonchat, SIGNAL(clicked()), this, SLOT(chatfriend())); //setWindowIcon(QIcon(QString(":/images/rstray3.png")));
connect(ui.toolButtonmessage, SIGNAL(clicked()), this, SLOT(msgfriend()));
connect(ui.toolButtondetails, SIGNAL(clicked()), this, SLOT(connectfriend()));
connect(ui.toolButtonconnect, SIGNAL(clicked()), this, SLOT(configurefriend()));
connect(ui.toolButtonexport, SIGNAL(clicked()), this, SLOT(exportfriend()));
connect(ui.toolButtonremove, SIGNAL(clicked()), this, SLOT(removefriend()));
connect(ui.lineEdit, SIGNAL(textChanged ( ) ), this, SLOT(checkChat( ) )); connect(ui.lineEdit, SIGNAL(textChanged ( ) ), this, SLOT(checkChat( ) ));
connect(ui.Sendbtn, SIGNAL(clicked()), this, SLOT(sendMsg())); connect(ui.Sendbtn, SIGNAL(clicked()), this, SLOT(sendMsg()));
@ -1002,10 +996,10 @@ void PeersDialog::displayInfoChatMenu(const QPoint& pos)
void PeersDialog::loadEmoticonsgroupchat() void PeersDialog::loadEmoticonsgroupchat()
{ {
QString sm_codes; QString sm_codes;
#if defined(Q_OS_WIN32) #if defined(Q_OS_WIN32)
QFile sm_file(QApplication::applicationDirPath() + "/emoticons/emotes.acs"); QFile sm_file(QApplication::applicationDirPath() + "/emoticons/emotes.acs");
#else #else
QFile sm_file(QString(":/smileys/emotes.acs")); QFile sm_file(QString(":/smileys/emotes.acs"));
#endif #endif
if(!sm_file.open(QIODevice::ReadOnly)) if(!sm_file.open(QIODevice::ReadOnly))
{ {