summaryrefslogtreecommitdiff
path: root/src/plugins/qmljseditor/qmljscomponentnamedialog.ui
diff options
context:
space:
mode:
authorMarco Bubke <marco.bubke@nokia.com>2012-04-11 17:58:59 +0200
committerMarco Bubke <marco.bubke@nokia.com>2012-04-12 13:49:03 +0200
commit9fcae416724c456e703dee2cedce82672461a283 (patch)
treece4d5820b031f2b45878b5172c94dd2fa2f3b4be /src/plugins/qmljseditor/qmljscomponentnamedialog.ui
parent1cb66190730a3ec8c28d62af3eecf26e79e913c7 (diff)
downloadqt-creator-9fcae416724c456e703dee2cedce82672461a283.tar.gz
Improve validation of the move component refactoring dialog
Using PathChooser and ClassNameValidatingLineEdit improves the usability. Change-Id: Ib01ee99222ea495b37b0e839fbc68981b071d0a6 Reviewed-by: Thomas Hartmann <Thomas.Hartmann@nokia.com>
Diffstat (limited to 'src/plugins/qmljseditor/qmljscomponentnamedialog.ui')
-rw-r--r--src/plugins/qmljseditor/qmljscomponentnamedialog.ui38
1 files changed, 22 insertions, 16 deletions
diff --git a/src/plugins/qmljseditor/qmljscomponentnamedialog.ui b/src/plugins/qmljseditor/qmljscomponentnamedialog.ui
index 59f3532657..1f70caf25e 100644
--- a/src/plugins/qmljseditor/qmljscomponentnamedialog.ui
+++ b/src/plugins/qmljseditor/qmljscomponentnamedialog.ui
@@ -25,15 +25,15 @@
<property name="verticalSpacing">
<number>10</number>
</property>
- <item row="0" column="0">
- <widget class="QLabel" name="componentNameLabel">
+ <item row="2" column="1" colspan="2">
+ <widget class="QLabel" name="messageLabel">
<property name="text">
- <string>Component name:</string>
+ <string/>
</property>
</widget>
</item>
<item row="0" column="1">
- <widget class="QLineEdit" name="componentNameEdit"/>
+ <widget class="Utils::ClassNameValidatingLineEdit" name="componentNameEdit"/>
</item>
<item row="1" column="0">
<widget class="QLabel" name="choosePathLabel">
@@ -42,22 +42,15 @@
</property>
</widget>
</item>
- <item row="1" column="1">
- <widget class="QLineEdit" name="pathEdit"/>
- </item>
- <item row="1" column="2">
- <widget class="QPushButton" name="choosePathButton">
+ <item row="0" column="0">
+ <widget class="QLabel" name="componentNameLabel">
<property name="text">
- <string>Choose...</string>
+ <string>Component name:</string>
</property>
</widget>
</item>
- <item row="2" column="1" colspan="2">
- <widget class="QLabel" name="messageLabel">
- <property name="text">
- <string/>
- </property>
- </widget>
+ <item row="1" column="1">
+ <widget class="Utils::PathChooser" name="pathEdit" native="true"/>
</item>
</layout>
</item>
@@ -86,6 +79,19 @@
</item>
</layout>
</widget>
+ <customwidgets>
+ <customwidget>
+ <class>Utils::ClassNameValidatingLineEdit</class>
+ <extends>QLineEdit</extends>
+ <header location="global">utils/classnamevalidatinglineedit.h</header>
+ </customwidget>
+ <customwidget>
+ <class>Utils::PathChooser</class>
+ <extends>QWidget</extends>
+ <header location="global">utils/pathchooser.h</header>
+ <container>1</container>
+ </customwidget>
+ </customwidgets>
<resources/>
<connections>
<connection>