Ignore:
Timestamp:
Aug 21, 2009, 3:34:10 AM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: Implemented QWidge::metric(). Added using of test (box) font engines on OS/2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/text/qfont.cpp

    r2 r124  
    6666#include <private/qt_x11_p.h>
    6767#endif
     68#ifdef Q_WS_PM
     69#include "qt_os2.h"
     70#include "qwindowdefs_pm.h"
     71#endif
    6872#ifdef Q_WS_QWS
    6973#include "qscreen_qws.h"
     
    159163#elif defined(Q_WS_WIN)
    160164    dpi = GetDeviceCaps(shared_dc(),LOGPIXELSX);
     165#elif defined(Q_WS_PM)
     166    LONG ulDpi;
     167    DevQueryCaps(GpiQueryDevice(qt_display_ps()),
     168                 CAPS_HORIZONTAL_FONT_RES, 1, &ulDpi);
     169    Q_ASSERT(ulDpi != 0);
     170    dpi = ulDpi;
    161171#elif defined(Q_WS_MAC)
    162172    extern float qt_mac_defaultDpi_x(); //qpaintdevice_mac.cpp
     
    185195#elif defined(Q_WS_WIN)
    186196    dpi = GetDeviceCaps(shared_dc(),LOGPIXELSY);
     197#elif defined(Q_WS_PM)
     198    LONG ulDpi;
     199    DevQueryCaps(GpiQueryDevice(qt_display_ps()),
     200                 CAPS_VERTICAL_FONT_RES, 1, &ulDpi);
     201    Q_ASSERT(ulDpi != 0);
     202    dpi = ulDpi;
    187203#elif defined(Q_WS_MAC)
    188204    extern float qt_mac_defaultDpi_y(); //qpaintdevice_mac.cpp
Note: See TracChangeset for help on using the changeset viewer.