Changeset 769 for trunk/src/gui/kernel/qapplication_x11.cpp
- Timestamp:
- Aug 2, 2010, 9:27:30 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.3 (added) merged: 768 /branches/vendor/nokia/qt/current merged: 767 /branches/vendor/nokia/qt/4.6.2 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/kernel/qapplication_x11.cpp
r651 r769 97 97 #endif 98 98 99 #ifndef QT_GUI_DOUBLE_CLICK_RADIUS 100 #define QT_GUI_DOUBLE_CLICK_RADIUS 5 101 #endif 102 103 99 104 //#define ALIEN_DEBUG 100 105 … … 316 321 "_XEMBED_INFO\0" 317 322 323 // Wacom old. (before version 0.10) 318 324 "Wacom Stylus\0" 319 325 "Wacom Cursor\0" 320 326 "Wacom Eraser\0" 327 328 // Tablet 329 "STYLUS\0" 330 "ERASER\0" 321 331 }; 322 332 … … 945 955 QApplication::setCursorFlashTime(num); 946 956 957 #ifndef QT_NO_WHEELEVENT 947 958 num = 948 959 settings.value(QLatin1String("wheelScrollLines"), 949 960 QApplication::wheelScrollLines()).toInt(); 950 961 QApplication::setWheelScrollLines(num); 962 #endif 951 963 952 964 QString colorspec = settings.value(QLatin1String("colorSpec"), … … 2360 2372 } 2361 2373 #else 2362 if (devs->type == ATOM(XWacomStylus) ) {2374 if (devs->type == ATOM(XWacomStylus) || devs->type == ATOM(XTabletStylus)) { 2363 2375 deviceType = QTabletEvent::Stylus; 2364 2376 if (wacomDeviceName()->isEmpty()) 2365 2377 wacomDeviceName()->append(devs->name); 2366 2378 gotStylus = true; 2367 } else if (devs->type == ATOM(XWacomEraser) ) {2379 } else if (devs->type == ATOM(XWacomEraser) || devs->type == ATOM(XTabletEraser)) { 2368 2380 deviceType = QTabletEvent::XFreeEraser; 2369 2381 gotEraser = true; … … 4214 4226 (long)event->xbutton.time -(long)mouseButtonPressTime 4215 4227 < QApplication::doubleClickInterval() && 4216 qAbs(event->xbutton.x - mouseXPos) < 5&&4217 qAbs(event->xbutton.y - mouseYPos) < 5) {4228 qAbs(event->xbutton.x - mouseXPos) < QT_GUI_DOUBLE_CLICK_RADIUS && 4229 qAbs(event->xbutton.y - mouseYPos) < QT_GUI_DOUBLE_CLICK_RADIUS) { 4218 4230 type = QEvent::MouseButtonDblClick; 4219 4231 mouseButtonPressTime -= 2000; // no double-click next time … … 4402 4414 if (popup && window() != popup) 4403 4415 popup->close(); 4416 #ifndef QT_NO_WHEELEVENT 4404 4417 QWheelEvent e(pos, globalPos, delta, buttons, modifiers, orient); 4405 4418 if (QApplication::sendSpontaneousEvent(widget, &e)) 4419 #endif 4406 4420 return true; 4407 4421 } … … 4414 4428 if (popup && widget != popup) 4415 4429 popup->hide(); 4430 #ifndef QT_NO_WHEELEVENT 4416 4431 QWheelEvent e(pos, globalPos, delta, buttons, modifiers, orient); 4417 4432 if (QApplication::sendSpontaneousEvent(widget, &e)) 4433 #endif 4418 4434 return true; 4419 4435 } … … 5314 5330 } 5315 5331 5332 #ifndef QT_NO_WHEELEVENT 5316 5333 void QApplication::setWheelScrollLines(int n) 5317 5334 { … … 5323 5340 return QApplicationPrivate::wheel_scroll_lines; 5324 5341 } 5342 #endif 5325 5343 5326 5344 void QApplication::setEffectEnabled(Qt::UIEffect effect, bool enable)
Note:
See TracChangeset
for help on using the changeset viewer.