--- a/Project/NewDialogClassDialog.ui Sat Nov 28 19:47:23 2015 +0100 +++ b/Project/NewDialogClassDialog.ui Sat Nov 28 19:48:11 2015 +0100 @@ -7,7 +7,7 @@ <x>0</x> <y>0</y> <width>600</width> - <height>140</height> + <height>124</height> </rect> </property> <property name="windowTitle"> @@ -16,16 +16,9 @@ <property name="sizeGripEnabled"> <bool>true</bool> </property> - <layout class="QVBoxLayout" name="_2"> + <layout class="QVBoxLayout" name="verticalLayout"> <item> - <layout class="QGridLayout" name="_3"> - <item row="2" column="1"> - <widget class="QLineEdit" name="pathnameEdit"> - <property name="toolTip"> - <string>Enter the path of the file for the forms code</string> - </property> - </widget> - </item> + <layout class="QGridLayout" name="gridLayout"> <item row="0" column="0"> <widget class="QLabel" name="label"> <property name="text"> @@ -36,6 +29,13 @@ </property> </widget> </item> + <item row="0" column="1"> + <widget class="QLineEdit" name="classnameEdit"> + <property name="toolTip"> + <string>Enter the name of the new class</string> + </property> + </widget> + </item> <item row="1" column="0"> <widget class="QLabel" name="label_2"> <property name="text"> @@ -46,34 +46,36 @@ </property> </widget> </item> + <item row="1" column="1"> + <widget class="QLineEdit" name="filenameEdit"> + <property name="toolTip"> + <string>Enter the name of the file for the forms code</string> + </property> + </widget> + </item> <item row="2" column="0"> <widget class="QLabel" name="label_3"> <property name="text"> <string>&Path:</string> </property> <property name="buddy"> - <cstring>pathnameEdit</cstring> - </property> - </widget> - </item> - <item row="0" column="1" colspan="2"> - <widget class="QLineEdit" name="classnameEdit"> - <property name="toolTip"> - <string>Enter the name of the new class</string> + <cstring>pathnamePicker</cstring> </property> </widget> </item> - <item row="1" column="1" colspan="2"> - <widget class="QLineEdit" name="filenameEdit"> - <property name="toolTip"> - <string>Enter the name of the file for the forms code</string> + <item row="2" column="1"> + <widget class="E5PathPicker" name="pathnamePicker" native="true"> + <property name="sizePolicy"> + <sizepolicy hsizetype="Expanding" vsizetype="Preferred"> + <horstretch>0</horstretch> + <verstretch>0</verstretch> + </sizepolicy> </property> - </widget> - </item> - <item row="2" column="2"> - <widget class="QToolButton" name="pathButton"> + <property name="focusPolicy"> + <enum>Qt::StrongFocus</enum> + </property> <property name="toolTip"> - <string>Select the source file path via a directory selection dialog</string> + <string>Enter the path of the file for the forms code</string> </property> </widget> </item> @@ -91,11 +93,17 @@ </item> </layout> </widget> + <customwidgets> + <customwidget> + <class>E5PathPicker</class> + <extends>QWidget</extends> + <header>E5Gui/E5PathPicker.h</header> + <container>1</container> + </customwidget> + </customwidgets> <tabstops> <tabstop>classnameEdit</tabstop> <tabstop>filenameEdit</tabstop> - <tabstop>pathnameEdit</tabstop> - <tabstop>pathButton</tabstop> <tabstop>buttonBox</tabstop> </tabstops> <resources/>