mirror of
				https://github.com/RetroShare/RetroShare.git
				synced 2025-10-30 22:29:00 -04:00 
			
		
		
		
	Removed most of the usages of std::ostringstream in the gui.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5056 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
		
							parent
							
								
									9ef7d08d2b
								
							
						
					
					
						commit
						4cb844c44d
					
				
					 38 changed files with 190 additions and 354 deletions
				
			
		|  | @ -24,8 +24,6 @@ | |||
| 
 | ||||
| #include "peerstatus.h" | ||||
| 
 | ||||
| #include <sstream> | ||||
| 
 | ||||
| PeerStatus::PeerStatus(QWidget *parent) | ||||
|  : QWidget(parent) | ||||
| { | ||||
|  | @ -50,16 +48,10 @@ void PeerStatus::getPeerStatus(unsigned int nFriendCount, unsigned int nOnlineCo | |||
| { | ||||
|     /* set users/friends/network */ | ||||
| 
 | ||||
|     std::ostringstream out; | ||||
|     out << nFriendCount << " "; | ||||
|      | ||||
|     std::ostringstream out2; | ||||
|     out2 << nOnlineCount << ""; | ||||
| 
 | ||||
|     statusPeers->setToolTip(tr("Online Friends/Total Friends") ); | ||||
| 
 | ||||
|     if (statusPeers) | ||||
|         statusPeers -> setText( "<strong>" + tr("Friends") + ":</strong> " + QString::fromStdString(out2.str()) + "/" + QString::fromStdString(out.str()) ); | ||||
|         statusPeers -> setText(QString("<strong>%1:</strong> %2/%3 ").arg(tr("Friends")).arg(nOnlineCount).arg(nFriendCount)); | ||||
|     		 | ||||
|     if (nOnlineCount > 0) | ||||
|     { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 thunder2
						thunder2