Changeset 107
- Timestamp:
- Jul 29, 2006, 4:22:12 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel/qaccel.cpp
r2 r107 311 311 } 312 312 if ( !e->text().isEmpty() ) { 313 temp.setKey( (int)e->text()[0].unicode() | UNICODE_ACCEL | modifier, index ); 313 QChar c = e->text()[0]; 314 // be in accordance with accoQAccel::shortcutKey() 315 if ( modifier != 0 && c.isPrint() ) 316 c = c.upper(); 317 temp.setKey( (int)c.unicode() | UNICODE_ACCEL | modifier, index ); 314 318 result = temp.matches( item->key ); 315 319 }
Note:
See TracChangeset
for help on using the changeset viewer.