- set items in TrustView to not editable

- don't show the own gpgid in FofPage in ConnectFriendWizard

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3238 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2010-06-30 14:52:41 +00:00
parent 852d82e287
commit 17723df2c8
2 changed files with 11 additions and 3 deletions

View File

@ -14,7 +14,11 @@
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout" > <layout class="QVBoxLayout" name="verticalLayout" >
<item> <item>
<widget class="QTableWidget" name="trustTableTW" /> <widget class="QTableWidget" name="trustTableTW">
<property name="editTriggers">
<set>QAbstractItemView::NoEditTriggers</set>
</property>
</widget>
</item> </item>
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout" > <layout class="QHBoxLayout" name="horizontalLayout" >

View File

@ -465,8 +465,7 @@ void FofPage::updatePeersList(int e) {
selectedPeersTW->clearContents() ; selectedPeersTW->clearContents() ;
selectedPeersTW->setRowCount(0) ; selectedPeersTW->setRowCount(0) ;
std::list<std::string> ids ; std::string sOwnId = rsPeers->getGPGOwnId();
rsPeers->getGPGAllList(ids) ;
int row = 0 ; int row = 0 ;
@ -480,6 +479,11 @@ void FofPage::updatePeersList(int e) {
rsPeers->getGPGAllList(gpg_ids); rsPeers->getGPGAllList(gpg_ids);
for(std::list<std::string>::const_iterator it(gpg_ids.begin());it!=gpg_ids.end();++it) for(std::list<std::string>::const_iterator it(gpg_ids.begin());it!=gpg_ids.end();++it)
{ {
if (*it == sOwnId) {
// its me
continue;
}
std::cerr << "examining peer " << *it << " (name=" << rsPeers->getPeerName(*it) ; std::cerr << "examining peer " << *it << " (name=" << rsPeers->getPeerName(*it) ;
RsPeerDetails details ; RsPeerDetails details ;