mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-06 16:15:23 -04:00
Added Phenom's new Compact Mode Changes:
A new compact mode remove useless text on status bar so the main windows not growing. It is selectable on Appearance option page, with check to hide Sound and Toaster disable buttons. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7392 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
c9ef2a77b5
commit
3cf9d9b955
17 changed files with 245 additions and 124 deletions
|
@ -39,7 +39,9 @@ PeerStatus::PeerStatus(QWidget *parent)
|
|||
statusPeers = new QLabel( tr("Friends: 0/0"), this );
|
||||
// statusPeers->setMinimumSize( statusPeers->frameSize().width() + 0, 0 );
|
||||
hbox->addWidget(statusPeers);
|
||||
|
||||
|
||||
_compactMode = false;
|
||||
|
||||
setLayout(hbox);
|
||||
|
||||
}
|
||||
|
@ -48,11 +50,14 @@ void PeerStatus::getPeerStatus(unsigned int nFriendCount, unsigned int nOnlineCo
|
|||
{
|
||||
/* set users/friends/network */
|
||||
|
||||
statusPeers->setToolTip(tr("Online Friends/Total Friends") );
|
||||
if (statusPeers){
|
||||
statusPeers->setToolTip(tr("Online Friends/Total Friends") );
|
||||
QString text;
|
||||
if (_compactMode) text = QString("%1/%2").arg(nOnlineCount).arg(nFriendCount);
|
||||
else text = QString("<strong>%1:</strong> %2/%3 ").arg(tr("Friends")).arg(nOnlineCount).arg(nFriendCount);
|
||||
statusPeers -> setText(text);
|
||||
}
|
||||
|
||||
if (statusPeers)
|
||||
statusPeers -> setText(QString("<strong>%1:</strong> %2/%3 ").arg(tr("Friends")).arg(nOnlineCount).arg(nFriendCount));
|
||||
|
||||
if (nOnlineCount > 0)
|
||||
{
|
||||
iconLabel->setPixmap(QPixmap(":/images/user/identity16.png"));
|
||||
|
@ -61,8 +66,4 @@ void PeerStatus::getPeerStatus(unsigned int nFriendCount, unsigned int nOnlineCo
|
|||
{
|
||||
iconLabel->setPixmap(QPixmap(":/images/user/identitygray16.png"));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue