Fixed the search function.
authorMichael Andreen <harv@ruin.nu>
Thu, 7 Dec 2000 08:42:59 +0000 (08:42 +0000)
committerMichael Andreen <harv@ruin.nu>
Thu, 7 Dec 2000 08:42:59 +0000 (08:42 +0000)
More search fixes..

ui/contactmodifyerbase.ui
ui/mainwindowbase.ui
ui/searchresultbase.ui

index 9c296b2..f551da3 100644 (file)
@@ -12,7 +12,7 @@
         <rect>
             <x>0</x>
             <y>0</y>
-            <width>430</width>
+            <width>422</width>
             <height>175</height>
         </rect>
     </property>
                                 <name>name</name>
                                 <cstring>TextLabel4</cstring>
                             </property>
+                            <property stdset="1">
+                                <name>frameShadow</name>
+                                <enum>MShadow</enum>
+                            </property>
                             <property stdset="1">
                                 <name>text</name>
                                 <string>&amp;Telefonnummer</string>
     </connection>
     <slot access="public">slotOK()</slot>
 </connections>
+<tabstops>
+    <tabstop>FirstnameLine</tabstop>
+    <tabstop>LastnameLine</tabstop>
+    <tabstop>AdressLine</tabstop>
+    <tabstop>PhoneNumberLine</tabstop>
+    <tabstop>buttonOk</tabstop>
+    <tabstop>buttonCancel</tabstop>
+</tabstops>
 </UI>
index ac5c850..4c11ad9 100644 (file)
@@ -12,7 +12,7 @@
         <rect>
             <x>0</x>
             <y>0</y>
-            <width>534</width>
+            <width>530</width>
             <height>398</height>
         </rect>
     </property>
             </property>
             <property stdset="1">
                 <name>cursor</name>
-                <cursor>13</cursor>
+                <cursor>0</cursor>
             </property>
             <property stdset="1">
                 <name>resizePolicy</name>
         <receiver>unnamed</receiver>
         <slot>slotModify(QListViewItem*)</slot>
     </connection>
+    <connection>
+        <sender>SearchLine</sender>
+        <signal>returnPressed()</signal>
+        <receiver>unnamed</receiver>
+        <slot>slotSearch()</slot>
+    </connection>
     <slot access="public">slotModify()</slot>
     <slot access="public">slotAdd()</slot>
     <slot access="public">slotDel()</slot>
index 82b2394..72b3795 100644 (file)
@@ -5,14 +5,14 @@
     <class>QDialog</class>
     <property stdset="1">
         <name>name</name>
-        <cstring>MyDialog</cstring>
+        <cstring>SearchResultBase</cstring>
     </property>
     <property stdset="1">
         <name>geometry</name>
         <rect>
             <x>0</x>
             <y>0</y>
-            <width>515</width>
+            <width>507</width>
             <height>286</height>
         </rect>
     </property>
                 <cstring>ContactView</cstring>
             </property>
         </widget>
-        <widget row="2"  column="0" >
+        <widget row="1"  column="0" >
             <class>QLayoutWidget</class>
             <property stdset="1">
                 <name>name</name>
-                <cstring>Layout15</cstring>
+                <cstring>Layout4</cstring>
             </property>
             <hbox>
                 <property stdset="1">
                         <name>autoDefault</name>
                         <bool>true</bool>
                     </property>
-                    <property stdset="1">
-                        <name>default</name>
-                        <bool>true</bool>
-                    </property>
                 </widget>
                 <spacer>
                     <property>
                         <name>name</name>
-                        <cstring>Horizontal Spacing2</cstring>
+                        <cstring>Spacer4</cstring>
                     </property>
                     <property stdset="1">
                         <name>orientation</name>
                     <class>QPushButton</class>
                     <property stdset="1">
                         <name>name</name>
-                        <cstring>buttonCancel</cstring>
+                        <cstring>DelButton</cstring>
                     </property>
                     <property stdset="1">
                         <name>text</name>
-                        <string>&amp;Cancel</string>
-                    </property>
-                    <property stdset="1">
-                        <name>autoDefault</name>
-                        <bool>true</bool>
+                        <string>&amp;Ta bort</string>
                     </property>
                 </widget>
-            </hbox>
-        </widget>
-        <widget row="1"  column="0" >
-            <class>QLayoutWidget</class>
-            <property stdset="1">
-                <name>name</name>
-                <cstring>Layout17</cstring>
-            </property>
-            <hbox>
-                <property stdset="1">
-                    <name>margin</name>
-                    <number>0</number>
-                </property>
-                <property stdset="1">
-                    <name>spacing</name>
-                    <number>6</number>
-                </property>
-                <spacer>
-                    <property>
-                        <name>name</name>
-                        <cstring>Spacer3</cstring>
-                    </property>
-                    <property stdset="1">
-                        <name>orientation</name>
-                        <enum>Horizontal</enum>
-                    </property>
-                    <property stdset="1">
-                        <name>sizeType</name>
-                        <enum>Expanding</enum>
-                    </property>
-                    <property>
-                        <name>sizeHint</name>
-                        <size>
-                            <width>20</width>
-                            <height>20</height>
-                        </size>
-                    </property>
-                </spacer>
                 <widget>
                     <class>QPushButton</class>
                     <property stdset="1">
                         <name>name</name>
-                        <cstring>DelButton</cstring>
+                        <cstring>ModifyButton</cstring>
                     </property>
                     <property stdset="1">
                         <name>text</name>
-                        <string>&amp;Ta bort</string>
+                        <string>&amp;Modifiera</string>
                     </property>
                 </widget>
-                <spacer>
-                    <property>
-                        <name>name</name>
-                        <cstring>Spacer4</cstring>
-                    </property>
-                    <property stdset="1">
-                        <name>orientation</name>
-                        <enum>Horizontal</enum>
-                    </property>
-                    <property stdset="1">
-                        <name>sizeType</name>
-                        <enum>Expanding</enum>
-                    </property>
-                    <property>
-                        <name>sizeHint</name>
-                        <size>
-                            <width>20</width>
-                            <height>20</height>
-                        </size>
-                    </property>
-                </spacer>
             </hbox>
         </widget>
     </grid>
 </widget>
 <connections>
     <connection>
-        <sender>buttonOk</sender>
+        <sender>DelButton</sender>
         <signal>clicked()</signal>
-        <receiver>MyDialog</receiver>
-        <slot>accept()</slot>
+        <receiver>SearchResultBase</receiver>
+        <slot>slotDel()</slot>
     </connection>
     <connection>
-        <sender>buttonCancel</sender>
+        <sender>ModifyButton</sender>
         <signal>clicked()</signal>
-        <receiver>MyDialog</receiver>
-        <slot>reject()</slot>
+        <receiver>SearchResultBase</receiver>
+        <slot>slotModify()</slot>
     </connection>
     <connection>
-        <sender>DelButton</sender>
+        <sender>ContactView</sender>
+        <signal>doubleClicked(QListViewItem*)</signal>
+        <receiver>SearchResultBase</receiver>
+        <slot>slotModify()</slot>
+    </connection>
+    <connection>
+        <sender>ContactView</sender>
+        <signal>returnPressed(QListViewItem*)</signal>
+        <receiver>SearchResultBase</receiver>
+        <slot>slotModify()</slot>
+    </connection>
+    <connection>
+        <sender>buttonOk</sender>
         <signal>clicked()</signal>
-        <receiver>MyDialog</receiver>
-        <slot>slotDel()</slot>
+        <receiver>SearchResultBase</receiver>
+        <slot>accept()</slot>
     </connection>
     <slot access="public">slotDel()</slot>
+    <slot access="public">slotModify()</slot>
 </connections>
 </UI>