diff options
author | axis <qt-info@nokia.com> | 2009-07-06 07:28:57 (GMT) |
---|---|---|
committer | axis <qt-info@nokia.com> | 2009-07-06 07:44:36 (GMT) |
commit | 57af679669a1562d6c1d767b6a6d79835aa99a3a (patch) | |
tree | 0ccc8864e0c0e3d241da65df654072921b9511de /src/gui | |
parent | b11571133cd46e42a56d902b0b482235f18c3012 (diff) | |
download | Qt-57af679669a1562d6c1d767b6a6d79835aa99a3a.zip Qt-57af679669a1562d6c1d767b6a6d79835aa99a3a.tar.gz Qt-57af679669a1562d6c1d767b6a6d79835aa99a3a.tar.bz2 |
Removed unused static data from Qt.
This saves memory and prevents warnings from RVCT.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/dialogs/qwizard.cpp | 2 | ||||
-rw-r--r-- | src/gui/kernel/qapplication_s60.cpp | 3 | ||||
-rw-r--r-- | src/gui/painting/qpainter.cpp | 3 | ||||
-rw-r--r-- | src/gui/styles/qwindowsstyle.cpp | 3 | ||||
-rw-r--r-- | src/gui/text/qfontengine_s60.cpp | 2 |
5 files changed, 3 insertions, 10 deletions
diff --git a/src/gui/dialogs/qwizard.cpp b/src/gui/dialogs/qwizard.cpp index 6859fc9..2e6bff6 100644 --- a/src/gui/dialogs/qwizard.cpp +++ b/src/gui/dialogs/qwizard.cpp @@ -83,7 +83,7 @@ const int ModernHeaderTopMargin = 2; const int ClassicHMargin = 4; const int MacButtonTopMargin = 13; const int MacLayoutLeftMargin = 20; -const int MacLayoutTopMargin = 14; +//const int MacLayoutTopMargin = 14; // Unused. Save some space and avoid warning. const int MacLayoutRightMargin = 20; const int MacLayoutBottomMargin = 17; diff --git a/src/gui/kernel/qapplication_s60.cpp b/src/gui/kernel/qapplication_s60.cpp index 5829217..e13955d 100644 --- a/src/gui/kernel/qapplication_s60.cpp +++ b/src/gui/kernel/qapplication_s60.cpp @@ -72,7 +72,6 @@ QT_BEGIN_NAMESPACE -static WId autoGrabWindow = 0; // Not the same as QWidget::grab*() #if defined(QT_DEBUG) static bool appNoGrab = false; // Grabbing enabled #endif @@ -821,7 +820,6 @@ void QApplicationPrivate::openPopup(QWidget *popup) WId id = popup->effectiveWinId(); id->SetPointerCapture(true); id->SetGloballyCapturing(true); - autoGrabWindow = id; } // popups are not focus-handled by the window system (the first @@ -858,7 +856,6 @@ void QApplicationPrivate::closePopup(QWidget *popup) if (QWidgetPrivate::mouseGrabber != 0) QWidgetPrivate::mouseGrabber->grabMouse(); - autoGrabWindow = 0; if (QWidgetPrivate::keyboardGrabber != 0) QWidgetPrivate::keyboardGrabber->grabKeyboard(); diff --git a/src/gui/painting/qpainter.cpp b/src/gui/painting/qpainter.cpp index 2b3f7c3..075e45d 100644 --- a/src/gui/painting/qpainter.cpp +++ b/src/gui/painting/qpainter.cpp @@ -75,9 +75,6 @@ QT_BEGIN_NAMESPACE #define QGradient_StretchToDevice 0x10000000 #define QPaintEngine_OpaqueBackground 0x40000000 -// use the same rounding as in qrasterizer.cpp (6 bit fixed point) -static const qreal aliasedCoordinateDelta = 0.5 - 0.015625; - // #define QT_DEBUG_DRAW #ifdef QT_DEBUG_DRAW bool qt_show_painter_debug_output = true; diff --git a/src/gui/styles/qwindowsstyle.cpp b/src/gui/styles/qwindowsstyle.cpp index 062eaec..2af2328 100644 --- a/src/gui/styles/qwindowsstyle.cpp +++ b/src/gui/styles/qwindowsstyle.cpp @@ -118,7 +118,8 @@ static const int windowsItemHMargin = 3; // menu item hor text margin static const int windowsItemVMargin = 2; // menu item ver text margin static const int windowsArrowHMargin = 6; // arrow horizontal margin static const int windowsTabSpacing = 12; // space between text and tab -static const int windowsCheckMarkHMargin = 2; // horiz. margins of check mark +// Save some space and avoid warning. +//static const int windowsCheckMarkHMargin = 2; // horiz. margins of check mark static const int windowsRightBorder = 15; // right border on windows static const int windowsCheckMarkWidth = 12; // checkmarks width on windows diff --git a/src/gui/text/qfontengine_s60.cpp b/src/gui/text/qfontengine_s60.cpp index 2e1abb2..f485afb 100644 --- a/src/gui/text/qfontengine_s60.cpp +++ b/src/gui/text/qfontengine_s60.cpp @@ -54,8 +54,6 @@ QT_BEGIN_NAMESPACE -static const int maxFontSizeInPixels = 60; - QFontEngineS60Extensions::QFontEngineS60Extensions(COpenFont *font) : m_font(font) , m_cmap(0) |