mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-12 11:02:30 -04:00
Moved the filter edit and the display button from FriendsDialog and MessengerWindow into FriendList.
Updated english translation git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6649 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
0fb66c4af4
commit
cc92fdfc81
9 changed files with 115 additions and 182 deletions
|
@ -103,11 +103,7 @@ MessengerWindow::MessengerWindow(QWidget* parent, Qt::WFlags flags)
|
|||
ui.avatar->setFrameType(AvatarWidget::STATUS_FRAME);
|
||||
ui.avatar->setOwnId();
|
||||
|
||||
connect( ui.shareButton, SIGNAL(clicked()), SLOT(openShareManager()));
|
||||
connect( ui.addIMAccountButton, SIGNAL(clicked( bool ) ), this , SLOT( addFriend() ) );
|
||||
|
||||
connect(ui.messagelineEdit, SIGNAL(textChanged(const QString &)), this, SLOT(savestatusmessage()));
|
||||
connect(ui.filterLineEdit, SIGNAL(textChanged(QString)), ui.friendList, SLOT(filterItems(QString)));
|
||||
|
||||
connect(NotifyQt::getInstance(), SIGNAL(ownAvatarChanged()), this, SLOT(updateAvatar()));
|
||||
connect(NotifyQt::getInstance(), SIGNAL(ownStatusMessageChanged()), this, SLOT(loadmystatusmessage()));
|
||||
|
@ -131,10 +127,18 @@ MessengerWindow::MessengerWindow(QWidget* parent, Qt::WFlags flags)
|
|||
|
||||
ui.messagelineEdit->setMinimumWidth(20);
|
||||
|
||||
ui.displaytoolButton->setMenu(ui.friendList->createDisplayMenu());
|
||||
/* Initialize friend list */
|
||||
QToolButton *button = new QToolButton(this);
|
||||
button->setIcon(QIcon(":/images/user/add_user24.png"));
|
||||
button->setToolTip(tr("Add a Friend"));
|
||||
connect(button, SIGNAL(clicked()), this, SLOT(addFriend()));
|
||||
ui.friendList->addToolButton(button);
|
||||
|
||||
ui.filterLineEdit->setPlaceholderText(tr("Search")) ;
|
||||
ui.filterLineEdit->showFilterIcon();
|
||||
button = new QToolButton(this);
|
||||
button->setIcon(QIcon(":/images/friendsfolder24.png"));
|
||||
button->setToolTip(tr("Share files for your friends"));
|
||||
connect(button, SIGNAL(clicked()), this, SLOT(openShareManager()));
|
||||
ui.friendList->addToolButton(button);
|
||||
|
||||
// load settings
|
||||
RsAutoUpdatePage::lockAllEvents();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue