improved turtle router display

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2311 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2010-02-14 10:53:57 +00:00
parent c37679e807
commit 4b5a175b38
2 changed files with 15 additions and 23 deletions

View File

@ -72,13 +72,22 @@ void TurtleRouterDialog::updateDisplay()
fillTable( _hashes_TW, hashes_info) ;
fillTable( _tunnels_TW, tunnels_info) ;
fillTable( _tunnel_reqs_TW, tunnel_reqs_info) ;
fillTable( _search_reqs_TW, search_reqs_info) ;
std::vector<std::vector<std::string> >& reqs(search_reqs_info) ;
for(uint i=0;i<search_reqs_info.size();++i) search_reqs_info[i].push_back("Search request") ;
for(uint i=0;i<tunnel_reqs_info.size();++i)
{
tunnel_reqs_info[i].push_back("Tunnel request") ;
reqs.push_back(tunnel_reqs_info[i]) ;
}
fillTable( _reqs_TW, reqs) ;
}
void TurtleRouterDialog::fillTable(QTableWidget *table,const std::vector<std::vector<std::string> >& data)
{
// table->clearContents() ;
table->clearContents() ;
for(uint i=0;i<data.size();++i)
{

View File

@ -84,13 +84,13 @@
</widget>
</item>
<item>
<widget class="QTableWidget" name="_tunnel_reqs_TW">
<widget class="QTableWidget" name="_reqs_TW">
<attribute name="horizontalHeaderStretchLastSection">
<bool>true</bool>
</attribute>
<column>
<property name="text">
<string>Tunnel request id</string>
<string>Request id</string>
</property>
</column>
<column>
@ -103,26 +103,9 @@
<string>Age</string>
</property>
</column>
</widget>
</item>
<item>
<widget class="QTableWidget" name="_search_reqs_TW">
<attribute name="horizontalHeaderStretchLastSection">
<bool>true</bool>
</attribute>
<column>
<property name="text">
<string>Search request id</string>
</property>
</column>
<column>
<property name="text">
<string>Origin</string>
</property>
</column>
<column>
<property name="text">
<string>Age</string>
<string>Type</string>
</property>
</column>
</widget>