Changeset 412 for trunk/src/gui/kernel


Ignore:
Timestamp:
Dec 10, 2009, 10:30:10 PM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

general: Made it build using GCC4 and fixed a couple warnings.

Location:
trunk/src/gui/kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/kernel/qapplication_pm.cpp

    r387 r412  
    111111extern void qt_WinQueryClipRegionOrRect(HWND hwnd, HRGN hrgn); // qwidget_pm.cpp
    112112
     113
     114
    113115extern QRegion qt_dirtyRegion(QWidget *); // qbackingstore.cpp
    114116
     
    156158}
    157159
    158 static QFont qt_sysfont2qfont(const PSZ scope)
     160static QFont qt_sysfont2qfont(SZ scope)
    159161{
    160162    // note: 10.System Proportional is de-facto the default font selected into
    161163    // the presentation space
    162164
    163     static const PSZ app = "PM_SystemFonts";
    164     static const PSZ def = "10.System Proportional";
     165    static SZ app = "PM_SystemFonts";
     166    static SZ def = "10.System Proportional";
    165167
    166168    ULONG keyLen = 0;
    167     QFont f("System Proportional", 10);
     169    QFont f(, 10);
    168170
    169171    if (PrfQueryProfileSize(HINI_USERPROFILE, app, scope, &keyLen) && keyLen) {
     
    13211323                WinSetPointer(HWND_DESKTOP, QCursor(Qt::ArrowCursor).handle());
    13221324#endif // QT_NO_CURSOR
    1323         } else if (type == WM_BUTTON1DOWN || type == type == WM_BUTTON2DOWN ||
     1325        } else if (type == WM_BUTTON1DOWN || type == WM_BUTTON2DOWN ||
    13241326                   type == WM_BUTTON3DOWN) {
    13251327            if (!top->isActiveWindow()) {
     
    23082310                    repeat, scan, ch, (ch > 32 && ch < 254) ?
    23092311                    qPrintable(QString::fromLocal8Bit((char *)&ch, 1)) :
    2310                     qPrintable(QString(QChar(' '))), vk);
     2312                    qPrintable(QString(QChar())), vk);
    23112313        QString flstr;
    23122314        myDefFlagEx(fl, KC_CHAR, flstr, "CHAR");
  • trunk/src/gui/kernel/qclipboard_pm.cpp

    r345 r412  
    6868
    6969QT_BEGIN_NAMESPACE
     70
     71
    7072
    7173////////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.