Ignore:
Timestamp:
Aug 2, 2010, 9:27:30 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.3 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/kernel/qapplication_x11.cpp

    r651 r769  
    9797#endif
    9898
     99#ifndef QT_GUI_DOUBLE_CLICK_RADIUS
     100#define QT_GUI_DOUBLE_CLICK_RADIUS 5
     101#endif
     102
     103
    99104//#define ALIEN_DEBUG
    100105
     
    316321    "_XEMBED_INFO\0"
    317322
     323    // Wacom old. (before version 0.10)
    318324    "Wacom Stylus\0"
    319325    "Wacom Cursor\0"
    320326    "Wacom Eraser\0"
     327
     328    // Tablet
     329    "STYLUS\0"
     330    "ERASER\0"
    321331};
    322332
     
    945955    QApplication::setCursorFlashTime(num);
    946956
     957#ifndef QT_NO_WHEELEVENT
    947958    num =
    948959        settings.value(QLatin1String("wheelScrollLines"),
    949960                       QApplication::wheelScrollLines()).toInt();
    950961    QApplication::setWheelScrollLines(num);
     962#endif
    951963
    952964    QString colorspec = settings.value(QLatin1String("colorSpec"),
     
    23602372                }
    23612373#else
    2362                 if (devs->type == ATOM(XWacomStylus)) {
     2374                if (devs->type == ATOM(XWacomStylus) || devs->type == ATOM(XTabletStylus)) {
    23632375                    deviceType = QTabletEvent::Stylus;
    23642376                    if (wacomDeviceName()->isEmpty())
    23652377                        wacomDeviceName()->append(devs->name);
    23662378                    gotStylus = true;
    2367                 } else if (devs->type == ATOM(XWacomEraser)) {
     2379                } else if (devs->type == ATOM(XWacomEraser) || devs->type == ATOM(XTabletEraser)) {
    23682380                    deviceType = QTabletEvent::XFreeEraser;
    23692381                    gotEraser = true;
     
    42144226                (long)event->xbutton.time -(long)mouseButtonPressTime
    42154227                < 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) {
    42184230                type = QEvent::MouseButtonDblClick;
    42194231                mouseButtonPressTime -= 2000;        // no double-click next time
     
    44024414        if (popup && window() != popup)
    44034415            popup->close();
     4416#ifndef QT_NO_WHEELEVENT
    44044417        QWheelEvent e(pos, globalPos, delta, buttons, modifiers, orient);
    44054418        if (QApplication::sendSpontaneousEvent(widget, &e))
     4419#endif
    44064420            return true;
    44074421    }
     
    44144428        if (popup && widget != popup)
    44154429            popup->hide();
     4430#ifndef QT_NO_WHEELEVENT
    44164431        QWheelEvent e(pos, globalPos, delta, buttons, modifiers, orient);
    44174432        if (QApplication::sendSpontaneousEvent(widget, &e))
     4433#endif
    44184434            return true;
    44194435    }
     
    53145330}
    53155331
     5332#ifndef QT_NO_WHEELEVENT
    53165333void QApplication::setWheelScrollLines(int n)
    53175334{
     
    53235340    return QApplicationPrivate::wheel_scroll_lines;
    53245341}
     5342#endif
    53255343
    53265344void QApplication::setEffectEnabled(Qt::UIEffect effect, bool enable)
Note: See TracChangeset for help on using the changeset viewer.