Skip to content

Commit

Permalink
Hide the text about network config for docker when editing template
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-duponchelle committed Apr 5, 2016
1 parent 180eaa2 commit 56fafba
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions gns3/modules/docker/pages/docker_vm_configuration_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ def loadSettings(self, settings, node=None, group=False):
self.uiConsolePortLabel.hide()
self.uiConsolePortSpinBox.hide()
self.uiNetworkConfigEditButton.hide()
self.uiNetworkConfigLabel.hide()
else:
self._node = node
self.uiConsolePortSpinBox.setValue(settings["console"])
Expand Down
4 changes: 2 additions & 2 deletions gns3/modules/docker/ui/docker_vm_configuration_page.ui
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>651</width>
<height>402</height>
<height>431</height>
</rect>
</property>
<property name="windowTitle">
Expand Down Expand Up @@ -158,7 +158,7 @@
</widget>
</item>
<item row="8" column="0">
<widget class="QLabel" name="label">
<widget class="QLabel" name="uiNetworkConfigLabel">
<property name="text">
<string>Network configuration</string>
</property>
Expand Down
10 changes: 5 additions & 5 deletions gns3/modules/docker/ui/docker_vm_configuration_page_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
class Ui_dockerVMConfigPageWidget(object):
def setupUi(self, dockerVMConfigPageWidget):
dockerVMConfigPageWidget.setObjectName("dockerVMConfigPageWidget")
dockerVMConfigPageWidget.resize(651, 402)
dockerVMConfigPageWidget.resize(651, 431)
self.verticalLayout = QtWidgets.QVBoxLayout(dockerVMConfigPageWidget)
self.verticalLayout.setObjectName("verticalLayout")
self.uiTabWidget = QtWidgets.QTabWidget(dockerVMConfigPageWidget)
Expand Down Expand Up @@ -81,9 +81,9 @@ def setupUi(self, dockerVMConfigPageWidget):
self.uiNetworkConfigEditButton = QtWidgets.QPushButton(self.tab)
self.uiNetworkConfigEditButton.setObjectName("uiNetworkConfigEditButton")
self.gridLayout.addWidget(self.uiNetworkConfigEditButton, 8, 1, 1, 1)
self.label = QtWidgets.QLabel(self.tab)
self.label.setObjectName("label")
self.gridLayout.addWidget(self.label, 8, 0, 1, 1)
self.uiNetworkConfigLabel = QtWidgets.QLabel(self.tab)
self.uiNetworkConfigLabel.setObjectName("uiNetworkConfigLabel")
self.gridLayout.addWidget(self.uiNetworkConfigLabel, 8, 0, 1, 1)
self.uiTabWidget.addTab(self.tab, "")
self.verticalLayout.addWidget(self.uiTabWidget)
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
Expand Down Expand Up @@ -111,6 +111,6 @@ def retranslateUi(self, dockerVMConfigPageWidget):
self.uiConsoleTypeComboBox.setItemText(1, _translate("dockerVMConfigPageWidget", "vnc"))
self.uiConsoleTypeLabel.setText(_translate("dockerVMConfigPageWidget", "Console type:"))
self.uiNetworkConfigEditButton.setText(_translate("dockerVMConfigPageWidget", "Edit"))
self.label.setText(_translate("dockerVMConfigPageWidget", "Network configuration"))
self.uiNetworkConfigLabel.setText(_translate("dockerVMConfigPageWidget", "Network configuration"))
self.uiTabWidget.setTabText(self.uiTabWidget.indexOf(self.tab), _translate("dockerVMConfigPageWidget", "General settings"))

0 comments on commit 56fafba

Please sign in to comment.