Ignore:
Timestamp:
Mar 8, 2010, 12:52:58 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.2 sources.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

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

    r561 r651  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    4848const QRect QDesktopWidget::screenGeometry(const QWidget *widget) const
    4949{
     50    if (!widget) {
     51        qWarning("QDesktopWidget::screenGeometry(): Attempt "
     52                 "to get the screen geometry of a null widget");
     53        return QRect();
     54    }
    5055    QRect rect = QWidgetPrivate::screenGeometry(widget);
    5156    if (rect.isNull())
     
    5661const QRect QDesktopWidget::availableGeometry(const QWidget *widget) const
    5762{
     63    if (!widget) {
     64        qWarning("QDesktopWidget::availableGeometry(): Attempt "
     65                 "to get the available geometry of a null widget");
     66        return QRect();
     67    }
    5868    QRect rect = QWidgetPrivate::screenGeometry(widget);
    5969    if (rect.isNull())
Note: See TracChangeset for help on using the changeset viewer.