clean up unused functions in PeersDialog and set minimum size for items to 26.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2998 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-05-25 15:47:12 +00:00
parent 18aa8bca8e
commit b99617d523
2 changed files with 3 additions and 48 deletions

View File

@ -430,12 +430,13 @@ void PeersDialog::insertPeers()
}
//use to mark item as updated
gpg_item->setData(0, Qt::UserRole, true);
gpg_item -> setData(0, Qt::UserRole, true);
gpg_item -> setText(0, QString::fromStdString(detail.name));
gpg_item -> setSizeHint(0, QSize( 26,26 ) );
gpg_item -> setTextAlignment(0, Qt::AlignLeft | Qt::AlignVCenter );
//gpg_item -> setText( 1, QString::fromStdString(detail.name));
/* not displayed, used to find back the item */
gpg_item -> setText(3, QString::fromStdString(detail.id));
@ -789,20 +790,6 @@ void PeersDialog::removefriend()
}
}
void PeersDialog::allowfriend()
{
QTreeWidgetItem *c = getCurrentPeer();
#ifdef PEERS_DEBUG
std::cerr << "PeersDialog::allowfriend()" << std::endl;
#endif
/*
bool accept = true;
rsServer->FriendStatus(getPeerRsCertId(c), accept);
*/
}
void PeersDialog::connectfriend()
{
QTreeWidgetItem *c = getCurrentPeer();
@ -824,35 +811,6 @@ void PeersDialog::connectfriend()
}
}
void PeersDialog::setaddressfriend()
{
QTreeWidgetItem *c = getCurrentPeer();
#ifdef PEERS_DEBUG
std::cerr << "PeersDialog::setaddressfriend()" << std::endl;
#endif
/* need to get the input address / port */
/*
std::string addr;
unsigned short port;
rsServer->FriendSetAddress(getPeerRsCertId(c), addr, port);
*/
}
void PeersDialog::trustfriend()
{
QTreeWidgetItem *c = getCurrentPeer();
#ifdef PEERS_DEBUG
std::cerr << "PeersDialog::trustfriend()" << std::endl;
#endif
/*
bool trust = true;
rsServer->FriendTrust(getPeerRsCertId(c), trust);
*/
}
/* GUI stuff -> don't do anything directly with Control */
void PeersDialog::configurefriend()
{

View File

@ -112,10 +112,7 @@ private slots:
void viewprofile();
/** RsServer Friend Calls */
void allowfriend();
void connectfriend();
void setaddressfriend();
void trustfriend();
void setColor();
void insertSendList();