settings: dir_path, config_path

This commit is contained in:
Wojtek Porczyk 2017-07-12 14:38:10 +02:00
parent cae10193e7
commit ac06eee39b
2 changed files with 10 additions and 50 deletions

View File

@ -433,8 +433,8 @@ class VMSettingsWindow(Ui_SettingsDialog, QDialog):
self.max_mem_size.setEnabled(self.include_in_balancing.isChecked()) self.max_mem_size.setEnabled(self.include_in_balancing.isChecked())
#paths #paths
self.dir_path.setText(self.vm.dir_path) self.dir_path.setText('REMOVE ME') # TODO
self.config_path.setText(self.vm.conf_file) self.config_path.setText('REMOVE ME') # TODO
try: try:
self.root_img_path.setText(self.vm.template.root_img) self.root_img_path.setText(self.vm.template.root_img)
except AttributeError: except AttributeError:

View File

@ -6,8 +6,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>704</width> <width>708</width>
<height>485</height> <height>529</height>
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
@ -29,7 +29,7 @@
<locale language="English" country="UnitedStates"/> <locale language="English" country="UnitedStates"/>
</property> </property>
<property name="currentIndex"> <property name="currentIndex">
<number>0</number> <number>1</number>
</property> </property>
<widget class="QWidget" name="basic_tab"> <widget class="QWidget" name="basic_tab">
<property name="locale"> <property name="locale">
@ -541,81 +541,41 @@
<enum>QFormLayout::AllNonFixedFieldsGrow</enum> <enum>QFormLayout::AllNonFixedFieldsGrow</enum>
</property> </property>
<item row="0" column="0"> <item row="0" column="0">
<widget class="QLabel" name="label_21">
<property name="text">
<string>dir:</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLabel" name="dir_path">
<property name="font">
<font>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="text">
<string>dir_path</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_22">
<property name="text">
<string>config:</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLabel" name="config_path">
<property name="font">
<font>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="text">
<string>config_path</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_23"> <widget class="QLabel" name="label_23">
<property name="text"> <property name="text">
<string>root img:</string> <string>root img:</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="1"> <item row="0" column="1">
<widget class="QLabel" name="root_img_path"> <widget class="QLabel" name="root_img_path">
<property name="text"> <property name="text">
<string>root_img_path</string> <string>root_img_path</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="0"> <item row="1" column="0">
<widget class="QLabel" name="label_24"> <widget class="QLabel" name="label_24">
<property name="text"> <property name="text">
<string>root volatile img:</string> <string>root volatile img:</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="1"> <item row="1" column="1">
<widget class="QLabel" name="volatile_img_path"> <widget class="QLabel" name="volatile_img_path">
<property name="text"> <property name="text">
<string>volatile_path</string> <string>volatile_path</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="4" column="0"> <item row="2" column="0">
<widget class="QLabel" name="label_25"> <widget class="QLabel" name="label_25">
<property name="text"> <property name="text">
<string>private img:</string> <string>private img:</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="4" column="1"> <item row="2" column="1">
<widget class="QLabel" name="private_img_path"> <widget class="QLabel" name="private_img_path">
<property name="text"> <property name="text">
<string>private_path</string> <string>private_path</string>