Changeset 174 for trunk/src/widgets/qcombobox.cpp
- Timestamp:
- Nov 6, 2007, 11:27:57 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/widgets/qcombobox.cpp
r2 r174 1339 1339 arrowRect.setHeight( QMAX( height() - (2 * arrowRect.y()), arrowRect.height() ) ); 1340 1340 1341 if ( count() && ( !editable() || arrowRect.contains( e->pos() ) ) ) { 1341 bool dropDown; 1342 int gs = style().styleHint(QStyle::SH_GUIStyle); 1343 if ( gs == QStyle::PMStyle ) 1344 dropDown = count() && arrowRect.contains( e->pos() ); 1345 else 1346 dropDown = count() && ( !editable() || arrowRect.contains( e->pos() ) ); 1347 1348 if ( dropDown ) { 1342 1349 d->arrowPressed = FALSE; 1343 1350 … … 1358 1365 QTimer::singleShot( 200, this, SLOT(internalClickTimeout())); 1359 1366 d->shortClick = TRUE; 1367 } 1368 else if ( gs == QStyle::PMStyle ) { 1369 setFocus(); 1360 1370 } 1361 1371 }
Note:
See TracChangeset
for help on using the changeset viewer.