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/styles/qwindowsxpstyle.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)
     
    4949#include <private/qstylehelper_p.h>
    5050#include <private/qwidget_p.h>
    51 #include <qlibrary.h>
     51#include <private/qsystemlibrary_p.h>
    5252#include <qpainter.h>
    5353#include <qpaintengine.h>
     
    303303        limboWidget->createWinId();
    304304        limboWidget->setObjectName(QLatin1String("xp_limbo_widget"));
    305         // We dont need this internal widget to appear in QApplication::topLevelWidgets()
     305        // We don't need this internal widget to appear in QApplication::topLevelWidgets()
    306306        if (QWidgetPrivate::allWidgets)
    307307            QWidgetPrivate::allWidgets->remove(limboWidget);
     
    345345    if (!tried) {
    346346        tried = true;
    347         QLibrary themeLib(QLatin1String("uxtheme"));
     347        QSystemLibrary themeLib(QLatin1String("uxtheme"));
    348348        pIsAppThemed = (PtrIsAppThemed)themeLib.resolve("IsAppThemed");
    349349        if (pIsAppThemed) {
     
    21552155                p->setBrush(Qt::NoBrush);
    21562156                if (checked)
    2157                     p->drawRect(vIconRect.adjusted(-1, -2, 1, 1));
     2157                    p->drawRect(vIconRect.adjusted(-1, -1, 0, 0));
    21582158                p->drawPixmap(vIconRect.topLeft(), pixmap);
    21592159
     
    36793679                                borderSize.cyBottomHeight + borderSize.cyTopHeight - 2);
    36803680                }
    3681                 sz += QSize(23, 0); //arrow button
     3681                const int textMargins = 2*(proxy()->pixelMetric(PM_FocusFrameHMargin) + 1);
     3682                sz += QSize(qMax(pixelMetric(QStyle::PM_ScrollBarExtent, option, widget)
     3683                                 + textMargins, 23), 0); //arrow button
    36823684            }
    36833685        }
Note: See TracChangeset for help on using the changeset viewer.