mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-18 20:34:26 -05:00
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:
parent
18aa8bca8e
commit
b99617d523
@ -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()
|
||||
{
|
||||
|
@ -112,10 +112,7 @@ private slots:
|
||||
void viewprofile();
|
||||
|
||||
/** RsServer Friend Calls */
|
||||
void allowfriend();
|
||||
void connectfriend();
|
||||
void setaddressfriend();
|
||||
void trustfriend();
|
||||
|
||||
void setColor();
|
||||
void insertSendList();
|
||||
|
Loading…
Reference in New Issue
Block a user