mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-05 23:55:35 -04:00
removed not needed network status tabwidget
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3930 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
9715066181
commit
a66d5f0f8f
3 changed files with 1 additions and 188 deletions
|
@ -178,11 +178,6 @@ NetworkDialog::NetworkDialog(QWidget *parent)
|
|||
menu->addAction(ui.actionTabsRounded);
|
||||
ui.viewButton->setMenu(menu);
|
||||
|
||||
QTimer *timer2 = new QTimer(this);
|
||||
connect(timer2, SIGNAL(timeout()), this, SLOT(updateNetworkStatus()));
|
||||
timer2->start(1000);
|
||||
|
||||
updateNetworkStatus();
|
||||
loadtabsettings();
|
||||
|
||||
ui.clearButton->hide();
|
||||
|
@ -709,49 +704,6 @@ void NetworkDialog::on_actionCreate_New_Profile_activated()
|
|||
// gencertdialog.exec ();
|
||||
}
|
||||
|
||||
void NetworkDialog::updateNetworkStatus()
|
||||
{
|
||||
if(RsAutoUpdatePage::eventsLocked())
|
||||
return ;
|
||||
|
||||
rsiface->lockData(); /* Lock Interface */
|
||||
|
||||
/* now the extra bit .... switch on check boxes */
|
||||
const RsConfig &config = rsiface->getConfig();
|
||||
|
||||
|
||||
/******* Network Status Tab *******/
|
||||
|
||||
if(config.netUpnpOk)
|
||||
{
|
||||
ui.iconlabel_upnp->setPixmap(QPixmap(":/images/ledon1.png"));
|
||||
}
|
||||
else
|
||||
{
|
||||
ui.iconlabel_upnp->setPixmap(QPixmap(":/images/ledoff1.png"));
|
||||
}
|
||||
|
||||
if (config.netLocalOk)
|
||||
{
|
||||
ui.iconlabel_netLimited->setPixmap(QPixmap(":/images/ledon1.png"));
|
||||
}
|
||||
else
|
||||
{
|
||||
ui.iconlabel_netLimited->setPixmap(QPixmap(":/images/ledoff1.png"));
|
||||
}
|
||||
|
||||
if (config.netExtraAddressOk)
|
||||
{
|
||||
ui.iconlabel_ext->setPixmap(QPixmap(":/images/ledon1.png"));
|
||||
}
|
||||
else
|
||||
{
|
||||
ui.iconlabel_ext->setPixmap(QPixmap(":/images/ledoff1.png"));
|
||||
}
|
||||
|
||||
rsiface->unlockData(); /* UnLock Interface */
|
||||
}
|
||||
|
||||
void NetworkDialog::on_actionTabsnorth_activated()
|
||||
{
|
||||
ui.networkTab->setTabPosition(QTabWidget::North);
|
||||
|
@ -784,13 +736,11 @@ void NetworkDialog::on_actionTabsright_activated()
|
|||
void NetworkDialog::on_actionTabsTriangular_activated()
|
||||
{
|
||||
ui.networkTab->setTabShape(QTabWidget::Triangular);
|
||||
ui.tabBottom->setTabShape(QTabWidget::Triangular);
|
||||
}
|
||||
|
||||
void NetworkDialog::on_actionTabsRounded_activated()
|
||||
{
|
||||
ui.networkTab->setTabShape(QTabWidget::Rounded);
|
||||
ui.tabBottom->setTabShape(QTabWidget::Rounded);
|
||||
}
|
||||
|
||||
void NetworkDialog::loadtabsettings()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue