]> ruin.nu Git - adress.git/blobdiff - ui/searchresultbase.ui
Fixed the search function.
[adress.git] / ui / searchresultbase.ui
index 82b239490185eb740470c8ff08a9f2f35329c8a3..72b379540ac261df3a416a0747d8000b93c97255 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>