1<!DOCTYPE UI><UI version="3.0" stdsetdef="1"> 2<class>ListEditor</class> 3<comment>********************************************************************* 4** 5** Copyright (C) 2015 The Qt Company Ltd. 6** Contact: http://www.qt.io/licensing/ 7** 8** This file is part of the autotests of the Qt Toolkit. 9** 10** $QT_BEGIN_LICENSE:LGPL$ 11** Commercial License Usage 12** Licensees holding valid commercial Qt licenses may use this file in 13** accordance with the commercial license agreement provided with the 14** Software or, alternatively, in accordance with the terms contained in 15** a written agreement between you and The Qt Company. For licensing terms 16** and conditions see http://www.qt.io/terms-conditions. For further 17** information use the contact form at http://www.qt.io/contact-us. 18** 19** GNU Lesser General Public License Usage 20** Alternatively, this file may be used under the terms of the GNU Lesser 21** General Public License version 2.1 or version 3 as published by the Free 22** Software Foundation and appearing in the file LICENSE.LGPLv21 and 23** LICENSE.LGPLv3 included in the packaging of this file. Please review the 24** following information to ensure the GNU Lesser General Public License 25** requirements will be met: https://www.gnu.org/licenses/lgpl.html and 26** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 27** 28** As a special exception, The Qt Company gives you certain additional 29** rights. These rights are described in The Qt Company LGPL Exception 30** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 31** 32** GNU General Public License Usage 33** Alternatively, this file may be used under the terms of the GNU 34** General Public License version 3.0 as published by the Free Software 35** Foundation and appearing in the file LICENSE.GPL included in the 36** packaging of this file. Please review the following information to 37** ensure the GNU General Public License version 3.0 requirements will be 38** met: http://www.gnu.org/copyleft/gpl.html. 39** 40** $QT_END_LICENSE$ 41** 42*********************************************************************</comment> 43<widget class="QDialog"> 44 <property name="name"> 45 <cstring>ListEditor</cstring> 46 </property> 47 <property name="geometry"> 48 <rect> 49 <x>0</x> 50 <y>0</y> 51 <width>331</width> 52 <height>301</height> 53 </rect> 54 </property> 55 <property name="caption"> 56 <string>Edit...</string> 57 </property> 58 <grid> 59 <property name="name"> 60 <cstring>unnamed</cstring> 61 </property> 62 <property name="margin"> 63 <number>11</number> 64 </property> 65 <property name="spacing"> 66 <number>6</number> 67 </property> 68 <widget class="QListView" row="0" column="0" rowspan="5" colspan="1"> 69 <column> 70 <property name="text"> 71 <string>Column 1</string> 72 </property> 73 <property name="clickable"> 74 <bool>true</bool> 75 </property> 76 <property name="resizeable"> 77 <bool>true</bool> 78 </property> 79 </column> 80 <property name="name"> 81 <cstring>listview</cstring> 82 </property> 83 <property name="selectionMode"> 84 <enum>Extended</enum> 85 </property> 86 <property name="resizeMode"> 87 <enum>AllColumns</enum> 88 </property> 89 </widget> 90 <widget class="QPushButton" row="0" column="1"> 91 <property name="name"> 92 <cstring>PushButton1</cstring> 93 </property> 94 <property name="text"> 95 <string>&Add</string> 96 </property> 97 </widget> 98 <widget class="QPushButton" row="1" column="1"> 99 <property name="name"> 100 <cstring>PushButton2</cstring> 101 </property> 102 <property name="text"> 103 <string>&Remove</string> 104 </property> 105 </widget> 106 <widget class="QPushButton" row="2" column="1"> 107 <property name="name"> 108 <cstring>PushButton3</cstring> 109 </property> 110 <property name="text"> 111 <string>Re&name</string> 112 </property> 113 </widget> 114 <widget class="QPushButton" row="4" column="1"> 115 <property name="name"> 116 <cstring>PushButton4</cstring> 117 </property> 118 <property name="text"> 119 <string>&Close</string> 120 </property> 121 </widget> 122 <spacer row="3" column="1"> 123 <property name="name"> 124 <cstring>Spacer1</cstring> 125 </property> 126 <property name="orientation"> 127 <enum>Vertical</enum> 128 </property> 129 <property name="sizeType"> 130 <enum>Expanding</enum> 131 </property> 132 <property name="sizeHint"> 133 <size> 134 <width>20</width> 135 <height>20</height> 136 </size> 137 </property> 138 </spacer> 139 </grid> 140</widget> 141<connections> 142 <connection> 143 <sender>PushButton1</sender> 144 <signal>clicked()</signal> 145 <receiver>ListEditor</receiver> 146 <slot>addItem()</slot> 147 </connection> 148 <connection> 149 <sender>PushButton2</sender> 150 <signal>clicked()</signal> 151 <receiver>ListEditor</receiver> 152 <slot>removeItems()</slot> 153 </connection> 154 <connection> 155 <sender>PushButton4</sender> 156 <signal>clicked()</signal> 157 <receiver>ListEditor</receiver> 158 <slot>accept()</slot> 159 </connection> 160 <connection> 161 <sender>listview</sender> 162 <signal>itemRenamed(QListViewItem*,int)</signal> 163 <receiver>ListEditor</receiver> 164 <slot>renamed(QListViewItem*)</slot> 165 </connection> 166 <connection> 167 <sender>PushButton3</sender> 168 <signal>clicked()</signal> 169 <receiver>ListEditor</receiver> 170 <slot>renameItem()</slot> 171 </connection> 172</connections> 173<includes> 174 <include location="local" impldecl="in implementation">listeditor.ui.h</include> 175</includes> 176<forwards> 177 <forward>class QStringList;</forward> 178</forwards> 179<slots> 180 <slot>init()</slot> 181 <slot>setList( const QStringList & l )</slot> 182 <slot>addItem()</slot> 183 <slot>renamed( QListViewItem * i )</slot> 184 <slot>removeItems()</slot> 185 <slot returnType="QStringList">items()</slot> 186 <slot>renameItem()</slot> 187</slots> 188<pixmapinproject/> 189<layoutdefaults spacing="6" margin="11"/> 190</UI> 191