mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-12 02:55:18 -04:00
added for Network View Settings QFrame to can Hide/Show the settings
added a Log Tab in Network git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@398 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
247e583a35
commit
4c40d7beff
6 changed files with 230 additions and 86 deletions
|
@ -41,7 +41,11 @@ NetworkView::NetworkView(QWidget *parent)
|
|||
|
||||
/* add button */
|
||||
connect( ui.refreshButton, SIGNAL( clicked( void ) ), this, SLOT( insertPeers( void ) ) );
|
||||
// connect( mScene, SIGNAL( changed ( const QList<QRectF> & ) ), this, SLOT ( changedScene( void ) ) );
|
||||
//connect( mScene, SIGNAL( changed ( const QList<QRectF> & ) ), this, SLOT ( changedScene( void ) ) );
|
||||
|
||||
/* Hide Settings frame */
|
||||
shownwSettingsFrame(false);
|
||||
connect( ui.nviewsettingsButton, SIGNAL(toggled(bool)), this, SLOT(shownwSettingsFrame(bool)));
|
||||
|
||||
|
||||
/* hide the Tree +/- */
|
||||
|
@ -233,4 +237,19 @@ void NetworkView::changedScene()
|
|||
{
|
||||
}
|
||||
|
||||
/**
|
||||
Toggles the Settings pane on and off, changes toggle button text
|
||||
*/
|
||||
void NetworkView::shownwSettingsFrame(bool show)
|
||||
{
|
||||
if (show) {
|
||||
ui.viewsettingsframe->setVisible(true);
|
||||
ui.nviewsettingsButton->setChecked(true);
|
||||
ui.nviewsettingsButton->setToolTip(tr("Hide Settings"));
|
||||
} else {
|
||||
ui.viewsettingsframe->setVisible(false);
|
||||
ui.nviewsettingsButton->setChecked(false);
|
||||
ui.nviewsettingsButton->setToolTip(tr("Show Settings"));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue