Changeset e4c5a03 in confclerk_git
- Timestamp:
- 01/26/10 14:18:54 (13 years ago)
- Branches:
- master, qt5
- Children:
- b86d4aa
- Parents:
- 6197713
- Location:
- src/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gui/mainwindow.cpp
r6197713 re4c5a03 376 376 { 377 377 static_cast<EventModel*>(dayTreeView->model())->updateModel(aEventId); 378 static_cast<EventModel*>(favTreeView->model())->updateModel(aEventId); 378 379 // we need to reload favourites, because some favourite could be deleted 380 //static_cast<EventModel*>(favTreeView->model())->updateModel(aEventId); 381 QDate aStartDate = Conference::getById(AppSettings::confId()).start(); 382 QDate aEndDate = Conference::getById(AppSettings::confId()).end(); 383 favouriteDayNavigator->setDates(aStartDate, aEndDate); 384 updateFavouritesView( Conference::getById(AppSettings::confId()).start() ); 385 379 386 static_cast<EventModel*>(trackTreeView->model())->updateModel(aEventId); 380 387 static_cast<EventModel*>(searchTreeView->model())->updateModel(aEventId); -
src/gui/mainwindow.ui
r6197713 re4c5a03 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="Expanding" hsizetype="Minimum">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" 138 <property name="margin" 137 <layout class="QVBoxLayout" name="searchDayNavigatorVerticalLayout"> 138 <property name="margin"> 139 139 <number>0</number> 140 140 </property> 141 141 <item> 142 <widget class="QToolButton" name="searchAgainButton" 143 <property name="sizePolicy" 144 <sizepolicy vsizetype="Preferred" hsizetype="Preferred">142 <widget class="QToolButton" name="searchAgainButton"> 143 <property name="sizePolicy"> 144 <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> 145 145 <horstretch>0</horstretch> 146 146 <verstretch>0</verstretch> 147 147 </sizepolicy> 148 148 </property> 149 <property name="toolTip" 149 <property name="toolTip"> 150 150 <string>Search again</string> 151 151 </property> 152 <property name="autoFillBackground" > 153 <bool>false</bool> 154 </property> 155 <property name="text" > 152 <property name="text"> 156 153 <string>S</string> 157 154 </property> 158 <property name="icon" 159 <iconset resource="../icons.qrc" 155 <property name="icon"> 156 <iconset resource="../icons.qrc"> 160 157 <normaloff>:/icons/search.png</normaloff>:/icons/search.png</iconset> 161 158 </property> 162 <property name="iconSize" 159 <property name="iconSize"> 163 160 <size> 164 161 <width>24</width> … … 166 163 </size> 167 164 </property> 168 <property name="toolButtonStyle" 165 <property name="toolButtonStyle"> 169 166 <enum>Qt::ToolButtonIconOnly</enum> 170 167 </property> … … 172 169 </item> 173 170 <item> 174 <widget class="DayNavigatorWidget" na tive="1" name="searchDayNavigator">175 <property name="sizePolicy" 176 <sizepolicy vsizetype="Expanding" hsizetype="Minimum">171 <widget class="DayNavigatorWidget" name="searchDayNavigator" native="true"> 172 <property name="sizePolicy"> 173 <sizepolicy hsizetype="Minimum" vsizetype="Expanding"> 177 174 <horstretch>0</horstretch> 178 175 <verstretch>0</verstretch> 179 176 </sizepolicy> 180 177 </property> 181 <property name="maximumSize" 178 <property name="maximumSize"> 182 179 <size> 183 180 <width>16777215</width> … … 191 188 </item> 192 189 <item> 193 <layout class="QVBoxLayout" name="verticalLayout_3" 194 <item> 195 <widget class="QWidget" na tive="1" name="searchHead">196 <property name="sizePolicy" 197 <sizepolicy vsizetype="Preferred" hsizetype="Preferred">190 <layout class="QVBoxLayout" name="verticalLayout_3"> 191 <item> 192 <widget class="QWidget" name="searchHead" native="true"> 193 <property name="sizePolicy"> 194 <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> 198 195 <horstretch>0</horstretch> 199 196 <verstretch>0</verstretch> 200 197 </sizepolicy> 201 198 </property> 202 <property name="maximumSize" 199 <property name="maximumSize"> 203 200 <size> 204 201 <width>16777215</width> … … 206 203 </size> 207 204 </property> 208 <layout class="QGridLayout" name="searchHeadLayout" 209 <property name="sizeConstraint" 205 <layout class="QGridLayout" name="searchHeadLayout"> 206 <property name="sizeConstraint"> 210 207 <enum>QLayout::SetDefaultConstraint</enum> 211 208 </property> 212 <item row="2" column="0" 213 <layout class="QHBoxLayout" name="horizontalLayout" 214 <item> 215 <widget class="QLineEdit" name="searchEdit" 216 <property name="enabled" 209 <item row="2" column="0"> 210 <layout class="QHBoxLayout" name="horizontalLayout"> 211 <item> 212 <widget class="QLineEdit" name="searchEdit"> 213 <property name="enabled"> 217 214 <bool>true</bool> 218 215 </property> 219 <property name="toolTip" 216 <property name="toolTip"> 220 217 <string>type a keyword to search</string> 221 218 </property> … … 223 220 </item> 224 221 <item> 225 <widget class="QPushButton" name="searchButton" > 226 <property name="text" > 222 <widget class="QPushButton" name="searchButton"> 223 <property name="sizePolicy"> 224 <sizepolicy hsizetype="Minimum" vsizetype="Minimum"> 225 <horstretch>0</horstretch> 226 <verstretch>0</verstretch> 227 </sizepolicy> 228 </property> 229 <property name="text"> 227 230 <string>Search</string> 228 231 </property> 229 <property name="icon" 230 <iconset resource="../icons.qrc" 232 <property name="icon"> 233 <iconset resource="../icons.qrc"> 231 234 <normaloff>:/icons/search.png</normaloff>:/icons/search.png</iconset> 232 235 </property> 233 <property name="checkable" 236 <property name="checkable"> 234 237 <bool>false</bool> 235 238 </property> 236 <property name="autoDefault" 239 <property name="autoDefault"> 237 240 <bool>true</bool> 238 241 </property> 239 <property name="default" 242 <property name="default"> 240 243 <bool>true</bool> 241 244 </property> 242 <property name="flat" 245 <property name="flat"> 243 246 <bool>false</bool> 244 247 </property> … … 247 250 </layout> 248 251 </item> 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" 252 <item row="0" column="0"> 253 <layout class="QHBoxLayout" name="horizontalLayout_6"> 254 <item> 255 <widget class="QCheckBox" name="searchTitle"> 256 <property name="text"> 254 257 <string>Title</string> 255 258 </property> 256 <property name="checked" 259 <property name="checked"> 257 260 <bool>true</bool> 258 261 </property> … … 260 263 </item> 261 264 <item> 262 <widget class="QCheckBox" name="searchAbstract" 263 <property name="text" 265 <widget class="QCheckBox" name="searchAbstract"> 266 <property name="text"> 264 267 <string>Abstract</string> 265 268 </property> … … 267 270 </item> 268 271 <item> 269 <widget class="QCheckBox" name="searchSpeaker" 270 <property name="text" 272 <widget class="QCheckBox" name="searchSpeaker"> 273 <property name="text"> 271 274 <string>Speaker</string> 272 275 </property> … … 274 277 </item> 275 278 <item> 276 <widget class="QCheckBox" name="searchTag" 277 <property name="text" 279 <widget class="QCheckBox" name="searchTag"> 280 <property name="text"> 278 281 <string>Tag</string> 279 282 </property> … … 281 284 </item> 282 285 <item> 283 <widget class="QCheckBox" name="searchRoom" 284 <property name="text" 286 <widget class="QCheckBox" name="searchRoom"> 287 <property name="text"> 285 288 <string>Room</string> 286 289 </property> … … 288 291 </item> 289 292 <item> 290 <spacer name="horizontalSpacer" 291 <property name="orientation" 293 <spacer name="horizontalSpacer"> 294 <property name="orientation"> 292 295 <enum>Qt::Horizontal</enum> 293 296 </property> 294 <property name="sizeHint" stdset="0" 297 <property name="sizeHint" stdset="0"> 295 298 <size> 296 299 <width>40</width> … … 306 309 </item> 307 310 <item> 308 <widget class="TreeView" name="searchTreeView" 309 <property name="sizePolicy" 310 <sizepolicy vsizetype="MinimumExpanding" hsizetype="Expanding">311 <widget class="TreeView" name="searchTreeView"> 312 <property name="sizePolicy"> 313 <sizepolicy hsizetype="Expanding" vsizetype="MinimumExpanding"> 311 314 <horstretch>0</horstretch> 312 315 <verstretch>1</verstretch> 313 316 </sizepolicy> 314 317 </property> 315 <property name="minimumSize" 318 <property name="minimumSize"> 316 319 <size> 317 320 <width>0</width> … … 319 322 </size> 320 323 </property> 321 <property name="maximumSize" 324 <property name="maximumSize"> 322 325 <size> 323 326 <width>16777215</width> … … 325 328 </size> 326 329 </property> 327 </widget> 328 </item> 329 <item> 330 <spacer name="verticalSpacer_2" > 331 <property name="orientation" > 330 <attribute name="headerDefaultSectionSize"> 331 <number>100</number> 332 </attribute> 333 </widget> 334 </item> 335 <item> 336 <spacer name="verticalSpacer_2"> 337 <property name="orientation"> 332 338 <enum>Qt::Vertical</enum> 333 339 </property> 334 <property name="sizeType" 340 <property name="sizeType"> 335 341 <enum>QSizePolicy::Expanding</enum> 336 342 </property> 337 <property name="sizeHint" stdset="0" 343 <property name="sizeHint" stdset="0"> 338 344 <size> 339 345 <width>20</width>
Note: See TracChangeset
for help on using the changeset viewer.