Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

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

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/widgets/qworkspace.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    4545#include "qbitmap.h"
    4646#include "qcursor.h"
    47 #include "qdatetime.h"
    4847#include "qdesktopwidget.h"
    4948#include "qevent.h"
     
    6059#include "qstyle.h"
    6160#include "qstyleoption.h"
     61#include "qelapsedtimer.h"
    6262#include "qtooltip.h"
    6363#include "qdebug.h"
     
    451451            if (d->flags & Qt::WindowSystemMenuHint) {
    452452                d->buttonDown = QStyle::SC_None;
    453                 static QTime *t = 0;
     453                static QElapsedTimer *t = 0;
    454454                static QWorkspaceTitleBar *tc = 0;
    455455                if (!t)
    456                     t = new QTime;
     456                    t = new QElapsedTimer;
    457457                if (tc != this || t->elapsed() > QApplication::doubleClickInterval()) {
    458458                    emit showOperationMenu();
     
    18401840{
    18411841    Q_D(QWorkspace);
    1842     static QTime* t = 0;
     1842    static QElapsedTimer* t = 0;
    18431843    static QWorkspace* tc = 0;
    18441844    if (o == d->maxtools) {
     
    18481848                QMenuBar* b = (QMenuBar*)o->parent();
    18491849                if (!t)
    1850                     t = new QTime;
     1850                    t = new QElapsedTimer;
    18511851                if (tc != this || t->elapsed() > QApplication::doubleClickInterval()) {
    18521852                    if (isRightToLeft()) {
Note: See TracChangeset for help on using the changeset viewer.