Changeset 01df23f
- Timestamp:
- 01/26/10 11:09:37 (13 years ago)
- Branches:
- master, qt5
- Children:
- c15be10
- Parents:
- 9859cac
- Location:
- src
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gui/mainwindow.cpp
r9859cac r01df23f 261 261 searchDayNavigator->getCurrentDate() != Conference::getById(AppSettings::confId()).start() ){ 262 262 searchVerticalWidget->show(); 263 searchAgainButton->show();263 //searchAgainButton->show(); 264 264 searchTreeView->show(); 265 265 searchHead->hide(); … … 337 337 mSqlEngine->searchEvent( AppSettings::confId(), columns, keyword ); 338 338 339 QDate aStartDate = Conference::getById(AppSettings::confId()).start(); 340 QDate aEndDate = Conference::getById(AppSettings::confId()).end(); 341 searchDayNavigator->setDates(aStartDate, aEndDate); 339 342 updateSearchView( Conference::getById(AppSettings::confId()).start() ); 340 343 } … … 343 346 { 344 347 searchHead->show(); 345 searchAgainButton->hide(); 348 //searchAgainButton->hide(); 349 searchVerticalWidget->hide(); 350 searchTreeView->hide(); 351 346 352 } 347 353 -
src/gui/mainwindow.ui
r9859cac r01df23f 119 119 </layout> 120 120 </widget> 121 <widget class="QWidget" name="searchTab" 122 <attribute name="title" 121 <widget class="QWidget" name="searchTab"> 122 <attribute name="title"> 123 123 <string>Search</string> 124 124 </attribute> 125 <layout class="QHBoxLayout" name="horizontalLayout_1" 125 <layout class="QHBoxLayout" name="horizontalLayout_1"> 126 126 <item> 127 <widget class="QWidget" na tive="1" name="searchVerticalWidget">128 <property name="enabled" 127 <widget class="QWidget" name="searchVerticalWidget" native="true"> 128 <property name="enabled"> 129 129 <bool>true</bool> 130 130 </property> 131 <property name="sizePolicy" 132 <sizepolicy vsizetype="Preferred" hsizetype="Preferred">131 <property name="sizePolicy"> 132 <sizepolicy hsizetype="Minimum" vsizetype="Expanding"> 133 133 <horstretch>0</horstretch> 134 134 <verstretch>0</verstretch> 135 135 </sizepolicy> 136 136 </property> 137 <layout class="QVBoxLayout" name="searchDayNavigatorVerticalLayout" > 137 <layout class="QVBoxLayout" name="searchDayNavigatorVerticalLayout"> 138 <property name="margin"> 139 <number>0</number> 140 </property> 138 141 <item> 139 <widget class="QToolButton" name="searchAgainButton" > 140 <property name="toolTip" > 142 <widget class="QToolButton" name="searchAgainButton"> 143 <property name="sizePolicy"> 144 <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> 145 <horstretch>0</horstretch> 146 <verstretch>0</verstretch> 147 </sizepolicy> 148 </property> 149 <property name="toolTip"> 141 150 <string>Search again</string> 142 151 </property> 143 <property name="text" > 152 <property name="autoFillBackground"> 153 <bool>false</bool> 154 </property> 155 <property name="text"> 144 156 <string>S</string> 145 157 </property> 146 <property name="toolButtonStyle" > 147 <enum>Qt::ToolButtonTextOnly</enum> 158 <property name="icon"> 159 <iconset resource="../icons.qrc"> 160 <normaloff>:/icons/search.png</normaloff>:/icons/search.png</iconset> 161 </property> 162 <property name="iconSize"> 163 <size> 164 <width>24</width> 165 <height>24</height> 166 </size> 167 </property> 168 <property name="toolButtonStyle"> 169 <enum>Qt::ToolButtonIconOnly</enum> 148 170 </property> 149 171 </widget> 150 172 </item> 151 173 <item> 152 <widget class="DayNavigatorWidget" native="1" name="searchDayNavigator" > 153 <property name="maximumSize" > 174 <widget class="DayNavigatorWidget" name="searchDayNavigator" native="true"> 175 <property name="sizePolicy"> 176 <sizepolicy hsizetype="Minimum" vsizetype="Expanding"> 177 <horstretch>0</horstretch> 178 <verstretch>0</verstretch> 179 </sizepolicy> 180 </property> 181 <property name="maximumSize"> 154 182 <size> 155 183 <width>16777215</width> … … 163 191 </item> 164 192 <item> 165 <layout class="QVBoxLayout" name="verticalLayout_3" 166 <item> 167 <widget class="QWidget" na tive="1" name="searchHead">168 <property name="sizePolicy" 169 <sizepolicy vsizetype="Preferred" hsizetype="Preferred">193 <layout class="QVBoxLayout" name="verticalLayout_3"> 194 <item> 195 <widget class="QWidget" name="searchHead" native="true"> 196 <property name="sizePolicy"> 197 <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> 170 198 <horstretch>0</horstretch> 171 199 <verstretch>0</verstretch> 172 200 </sizepolicy> 173 201 </property> 174 <property name="maximumSize" 202 <property name="maximumSize"> 175 203 <size> 176 204 <width>16777215</width> … … 178 206 </size> 179 207 </property> 180 <layout class="QGridLayout" name="searchHeadLayout" 181 <property name="sizeConstraint" 208 <layout class="QGridLayout" name="searchHeadLayout"> 209 <property name="sizeConstraint"> 182 210 <enum>QLayout::SetDefaultConstraint</enum> 183 211 </property> 184 <item row="2" column="0" 185 <layout class="QHBoxLayout" name="horizontalLayout" 186 <item> 187 <widget class="QLineEdit" name="searchEdit" 188 <property name="enabled" 212 <item row="2" column="0"> 213 <layout class="QHBoxLayout" name="horizontalLayout"> 214 <item> 215 <widget class="QLineEdit" name="searchEdit"> 216 <property name="enabled"> 189 217 <bool>true</bool> 190 218 </property> 191 <property name="toolTip" 219 <property name="toolTip"> 192 220 <string>type a keyword to search</string> 193 221 </property> … … 195 223 </item> 196 224 <item> 197 <widget class="QPushButton" name="searchButton" 198 <property name="text" 225 <widget class="QPushButton" name="searchButton"> 226 <property name="text"> 199 227 <string>Search</string> 200 228 </property> 201 <property name="checkable" > 229 <property name="icon"> 230 <iconset resource="../icons.qrc"> 231 <normaloff>:/icons/search.png</normaloff>:/icons/search.png</iconset> 232 </property> 233 <property name="checkable"> 202 234 <bool>false</bool> 203 235 </property> 204 <property name="autoDefault" 236 <property name="autoDefault"> 205 237 <bool>true</bool> 206 238 </property> 207 <property name="default" 239 <property name="default"> 208 240 <bool>true</bool> 209 241 </property> 210 <property name="flat" 242 <property name="flat"> 211 243 <bool>false</bool> 212 244 </property> … … 215 247 </layout> 216 248 </item> 217 <item row="0" column="0" 218 <layout class="QHBoxLayout" name="horizontalLayout_6" 219 <item> 220 <widget class="QCheckBox" name="searchTitle" 221 <property name="text" 249 <item row="0" column="0"> 250 <layout class="QHBoxLayout" name="horizontalLayout_6"> 251 <item> 252 <widget class="QCheckBox" name="searchTitle"> 253 <property name="text"> 222 254 <string>Title</string> 223 255 </property> 224 <property name="checked" 256 <property name="checked"> 225 257 <bool>true</bool> 226 258 </property> … … 228 260 </item> 229 261 <item> 230 <widget class="QCheckBox" name="searchAbstract" 231 <property name="text" 262 <widget class="QCheckBox" name="searchAbstract"> 263 <property name="text"> 232 264 <string>Abstract</string> 233 265 </property> … … 235 267 </item> 236 268 <item> 237 <widget class="QCheckBox" name="searchSpeaker" 238 <property name="text" 269 <widget class="QCheckBox" name="searchSpeaker"> 270 <property name="text"> 239 271 <string>Speaker</string> 240 272 </property> … … 242 274 </item> 243 275 <item> 244 <widget class="QCheckBox" name="searchTag" 245 <property name="text" 276 <widget class="QCheckBox" name="searchTag"> 277 <property name="text"> 246 278 <string>Tag</string> 247 279 </property> … … 249 281 </item> 250 282 <item> 251 <widget class="QCheckBox" name="searchRoom" 252 <property name="text" 283 <widget class="QCheckBox" name="searchRoom"> 284 <property name="text"> 253 285 <string>Room</string> 254 286 </property> … … 256 288 </item> 257 289 <item> 258 <spacer name="horizontalSpacer" 259 <property name="orientation" 290 <spacer name="horizontalSpacer"> 291 <property name="orientation"> 260 292 <enum>Qt::Horizontal</enum> 261 293 </property> 262 <property name="sizeHint" stdset="0" 294 <property name="sizeHint" stdset="0"> 263 295 <size> 264 296 <width>40</width> … … 274 306 </item> 275 307 <item> 276 <widget class="TreeView" name="searchTreeView" 277 <property name="sizePolicy" 278 <sizepolicy vsizetype="MinimumExpanding" hsizetype="Expanding">308 <widget class="TreeView" name="searchTreeView"> 309 <property name="sizePolicy"> 310 <sizepolicy hsizetype="Expanding" vsizetype="MinimumExpanding"> 279 311 <horstretch>0</horstretch> 280 312 <verstretch>1</verstretch> 281 313 </sizepolicy> 282 314 </property> 283 <property name="minimumSize" 315 <property name="minimumSize"> 284 316 <size> 285 317 <width>0</width> … … 287 319 </size> 288 320 </property> 289 <property name="maximumSize" 321 <property name="maximumSize"> 290 322 <size> 291 323 <width>16777215</width> … … 293 325 </size> 294 326 </property> 295 </widget> 296 </item> 297 <item> 298 <spacer name="verticalSpacer_2" > 299 <property name="orientation" > 327 <attribute name="headerDefaultSectionSize"> 328 <number>100</number> 329 </attribute> 330 </widget> 331 </item> 332 <item> 333 <spacer name="verticalSpacer_2"> 334 <property name="orientation"> 300 335 <enum>Qt::Vertical</enum> 301 336 </property> 302 <property name="sizeType" 337 <property name="sizeType"> 303 338 <enum>QSizePolicy::Expanding</enum> 304 339 </property> 305 <property name="sizeHint" stdset="0" 340 <property name="sizeHint" stdset="0"> 306 341 <size> 307 342 <width>20</width> -
src/icons.qrc
r9859cac r01df23f 12 12 <file>icons/exclamation-iconOff.png</file> 13 13 <file>icons/info.png</file> 14 <file>icons/search.png</file> 14 15 </qresource> 15 16 </RCC>
Note: See TracChangeset
for help on using the changeset viewer.