Removed + and - buttons in cluster interface editor dialog page (fixed #1827)

This commit is contained in:
Roman Bovsunovsky
2010-11-08 20:18:36 +02:00
parent d67b1366e5
commit bc61925c41
2 changed files with 4 additions and 2 deletions
@@ -39,10 +39,10 @@ ClusterInterfacesSelectorWidget::ClusterInterfacesSelectorWidget(QWidget *parent
delInterface.setIcon(QIcon(":/Icons/del.png")); delInterface.setIcon(QIcon(":/Icons/del.png"));
newInterface.setToolTip(tr("Add new interface")); newInterface.setToolTip(tr("Add new interface"));
delInterface.setToolTip(tr("Delete current interface")); delInterface.setToolTip(tr("Delete current interface"));
this->setCornerWidget(&delInterface, Qt::TopRightCorner); /* this->setCornerWidget(&delInterface, Qt::TopRightCorner);
this->setCornerWidget(&newInterface, Qt::TopLeftCorner); this->setCornerWidget(&newInterface, Qt::TopLeftCorner);
this->cornerWidget(Qt::TopRightCorner)->show(); this->cornerWidget(Qt::TopRightCorner)->show();
this->cornerWidget(Qt::TopLeftCorner)->show(); this->cornerWidget(Qt::TopLeftCorner)->show();*/
noTabs = false; noTabs = false;
} }
+2
View File
@@ -214,6 +214,8 @@ void InterfacesTabWidget::setClusterMode(bool st)
this->widget(i)); this->widget(i));
if (w!=NULL) w->setClusterMode(st); if (w!=NULL) w->setClusterMode(st);
} }
newInterface.setVisible(!st);
delInterface.setVisible(!st);
} }
void InterfacesTabWidget::addClusterInterface(ClusterInterfaceData data) void InterfacesTabWidget::addClusterInterface(ClusterInterfaceData data)