equal
deleted
inserted
replaced
1 /**************************************************************************** |
1 /**************************************************************************** |
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the QtGui module of the Qt Toolkit. |
7 ** This file is part of the QtGui module of the Qt Toolkit. |
8 ** |
8 ** |
373 case QPaintDevice::PdmHeight: |
373 case QPaintDevice::PdmHeight: |
374 return h; |
374 return h; |
375 case QPaintDevice::PdmWidthMM: |
375 case QPaintDevice::PdmWidthMM: |
376 return qRound(d->width * 25.4 / qt_defaultDpiX()); |
376 return qRound(d->width * 25.4 / qt_defaultDpiX()); |
377 case QPaintDevice::PdmHeightMM: |
377 case QPaintDevice::PdmHeightMM: |
378 return qRound(d->width * 25.4 / qt_defaultDpiY()); |
378 return qRound(d->height * 25.4 / qt_defaultDpiY()); |
379 case QPaintDevice::PdmNumColors: |
379 case QPaintDevice::PdmNumColors: |
380 return d->colortable.size(); |
380 return d->colortable.size(); |
381 case QPaintDevice::PdmDepth: |
381 case QPaintDevice::PdmDepth: |
382 return this->d; |
382 return this->d; |
383 case QPaintDevice::PdmDpiX: // fall-through |
383 case QPaintDevice::PdmDpiX: // fall-through |