Restore the forms/ subdir that was lost in the uitools reimport
authorThiago Macieira <thiago.macieira@intel.com>
Wed, 1 Aug 2012 15:12:41 +0000 (17:12 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 1 Aug 2012 20:28:33 +0000 (22:28 +0200)
These files are referenced in the .qrc file, so they are necessary
during compilation.

The files were copied from the commit referenced in the initial import
of the qttools.git repository.

Change-Id: Id1f182a7a9dd4e08e63fb903b978de192b85cd98
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
examples/uitools/textfinder/forms/input.txt [new file with mode: 0644]
examples/uitools/textfinder/forms/textfinder.ui [new file with mode: 0644]

diff --git a/examples/uitools/textfinder/forms/input.txt b/examples/uitools/textfinder/forms/input.txt
new file mode 100644 (file)
index 0000000..29dfe5d
--- /dev/null
@@ -0,0 +1,9 @@
+These forms are processed at run-time to produce dynamically-generated user interfaces. 
+In order to generate a form at run-time, a resource file containing a UI file is needed. 
+Applications that use the form handling classes need to be configured to be built against 
+the QtUiTools module. This is done by including the following declaration in a qmake project 
+file to ensure that the application is compiled and linked appropriately. A form loader object, 
+provided by the QUiLoader class, is used to construct the user interface. This user interface 
+can be retrieved from any QIODevice; for example, a QFile object can be used to obtain a form 
+stored in a project's resources. The QUiLoader::load() function takes the user interface 
+description contained in the file and constructs the form widget.
\ No newline at end of file
diff --git a/examples/uitools/textfinder/forms/textfinder.ui b/examples/uitools/textfinder/forms/textfinder.ui
new file mode 100644 (file)
index 0000000..af05192
--- /dev/null
@@ -0,0 +1,89 @@
+<ui version="4.0" >
+ <class>Form</class>
+ <widget class="QWidget" name="Form" >
+  <property name="geometry" >
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>378</width>
+    <height>158</height>
+   </rect>
+  </property>
+  <property name="windowTitle" >
+   <string>Find Text</string>
+  </property>
+  <layout class="QVBoxLayout" >
+   <property name="margin" >
+    <number>9</number>
+   </property>
+   <property name="spacing" >
+    <number>6</number>
+   </property>
+   <item>
+    <layout class="QGridLayout" >
+     <property name="margin" >
+      <number>0</number>
+     </property>
+     <property name="spacing" >
+      <number>6</number>
+     </property>
+     <item row="0" column="1" >
+      <widget class="QLineEdit" name="lineEdit" />
+     </item>
+     <item row="0" column="0" >
+      <widget class="QLabel" name="searchLabel" >
+       <property name="text" >
+        <string>&amp;Keyword:</string>
+       </property>
+       <property name="buddy" >
+        <cstring>lineEdit</cstring>
+       </property>
+      </widget>
+     </item>
+     <item row="0" column="2" >
+      <widget class="QPushButton" name="findButton" >
+       <property name="text" >
+        <string>&amp;Find</string>
+       </property>
+      </widget>
+     </item>
+    </layout>
+   </item>
+   <item>
+    <widget class="QTextEdit" name="textEdit" />
+   </item>
+   <item>
+    <spacer>
+     <property name="orientation" >
+      <enum>Qt::Vertical</enum>
+     </property>
+     <property name="sizeHint" >
+      <size>
+       <width>20</width>
+       <height>16</height>
+      </size>
+     </property>
+    </spacer>
+   </item>
+  </layout>
+ </widget>
+ <resources/>
+ <connections>
+  <connection>
+   <sender>lineEdit</sender>
+   <signal>returnPressed()</signal>
+   <receiver>findButton</receiver>
+   <slot>animateClick()</slot>
+   <hints>
+    <hint type="sourcelabel" >
+     <x>261</x>
+     <y>17</y>
+    </hint>
+    <hint type="destinationlabel" >
+     <x>320</x>
+     <y>17</y>
+    </hint>
+   </hints>
+  </connection>
+ </connections>
+</ui>