mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-21 21:59:02 -04:00
Added a info Frame, when adding a Distant Peer to the send list.
Added Default blue forum icons for own Forums. Changed default text color for own group & online status text color Switch icon when Contacts View is hided. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7816 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
0f22870bbd
commit
abc33296a7
9 changed files with 190 additions and 10 deletions
|
@ -130,14 +130,16 @@ MessageComposer::MessageComposer(QWidget *parent, Qt::WindowFlags flags)
|
|||
m_compareRole->setRole(COLUMN_CONTACT_NAME, ROLE_CONTACT_SORT);
|
||||
|
||||
m_completer = NULL;
|
||||
|
||||
ui.distantFrame->hide();
|
||||
|
||||
Settings->loadWidgetInformation(this);
|
||||
|
||||
setAttribute ( Qt::WA_DeleteOnClose, true );
|
||||
|
||||
ui.hashBox->hide();
|
||||
ui.signMessage_CB->setChecked(true) ;
|
||||
ui.signMessage_CB->setEnabled(false) ;
|
||||
ui.signMessage_CB->setChecked(true) ;
|
||||
ui.signMessage_CB->setEnabled(false) ;
|
||||
|
||||
// connect up the buttons.
|
||||
connect( ui.actionSend, SIGNAL( triggered (bool)), this, SLOT( sendMessage( ) ) );
|
||||
|
@ -1457,6 +1459,8 @@ void MessageComposer::setRecipientToRow(int row, enumType type, destinationType
|
|||
|
||||
name = tr("%2 <%2@%1>").arg(QString::fromStdString(gid.toStdString())).arg(QString::fromUtf8(detail.mNickname.c_str())) ;
|
||||
icon = QIcon(identicon);
|
||||
|
||||
ui.distantFrame->show();
|
||||
}
|
||||
break ;
|
||||
|
||||
|
@ -2181,11 +2185,22 @@ bool MessageComposer::maybeSave()
|
|||
void MessageComposer::toggleContacts()
|
||||
{
|
||||
ui.contactsdockWidget->setVisible(!ui.contactsdockWidget->isVisible());
|
||||
updatecontactsviewicons();
|
||||
}
|
||||
|
||||
void MessageComposer::on_contactsdockWidget_visibilityChanged(bool visible)
|
||||
{
|
||||
contactSidebarAction->setChecked(visible);
|
||||
updatecontactsviewicons();
|
||||
}
|
||||
|
||||
void MessageComposer::updatecontactsviewicons()
|
||||
{
|
||||
if(!ui.contactsdockWidget->isVisible()){
|
||||
ui.actionContactsView->setIcon(QIcon(":/images/contactsclosed24.png"));
|
||||
}else{
|
||||
ui.actionContactsView->setIcon(QIcon(":/images/contacts24.png"));
|
||||
}
|
||||
}
|
||||
|
||||
void MessageComposer::addImage()
|
||||
|
@ -2473,3 +2488,8 @@ void MessageComposer::showTagLabels()
|
|||
ui.tagLayout->addStretch();
|
||||
}
|
||||
}
|
||||
|
||||
void MessageComposer::on_closeInfoFrameButton_clicked()
|
||||
{
|
||||
ui.distantFrame->setVisible(false);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue