mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-04 23:25:32 -04:00
Fixed compile. Show up and download speed in the same format like in the statusbar.
Fixed german language. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3706 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
644f2fcbcc
commit
8d992ec817
3 changed files with 126 additions and 77 deletions
|
@ -531,17 +531,16 @@ void MainWindow::updateStatus()
|
|||
{
|
||||
trayIcon->setIcon(QIcon(IMAGE_RETROSHARE));
|
||||
}
|
||||
|
||||
|
||||
if (nOnlineCount > 1)
|
||||
trayIcon->setToolTip( tr("RetroShare") + "\n" + tr("Down: %1 (kB/s)").arg(downKb) + " | " + tr("Up: %1 (kB/s)").arg(upKb)
|
||||
+ "\n" + tr("%1 friends connected").arg(nOnlineCount) );
|
||||
QString tray = tr("RetroShare") + "\n" + tr("Down: %1 (kB/s)").arg(downKb, 0, 'f', 2) + " | " + tr("Up: %1 (kB/s)").arg(upKb, 0, 'f', 2) + "\n";
|
||||
|
||||
if (nOnlineCount == 1) {
|
||||
tray += tr("%1 friend connected").arg(nOnlineCount);
|
||||
} else {
|
||||
trayIcon->setToolTip( tr("RetroShare") + "\n" + tr("Down: %1 (kB/s)").arg(downKb) + " | " + tr("Up: %1 (kB/s)").arg(upKb)
|
||||
+ "\n" + tr("%1 friend connected").arg(nOnlineCount) );
|
||||
tray += tr("%1 friends connected").arg(nOnlineCount);
|
||||
}
|
||||
|
||||
|
||||
|
||||
trayIcon->setToolTip(tray);
|
||||
}
|
||||
|
||||
void MainWindow::privateChatChanged(int list, int type)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue