Changeset 129


Ignore:
Timestamp:
Aug 26, 2009, 9:15:46 PM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: Implemented QWidgetPrivate::setWindowTitle_sys().

File:
1 edited

Legend:

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

    r128 r129  
    14031403void QWidgetPrivate::setCursor_sys(const QCursor &cursor)
    14041404{
    1405     // @todo implement
     1405    // @todo implement
    14061406}
    14071407
    14081408void QWidgetPrivate::unsetCursor_sys()
    14091409{
    1410     // @todo implement
     1410    // @todo implement
    14111411}
    14121412#endif
     
    14141414void QWidgetPrivate::setWindowTitle_sys(const QString &caption)
    14151415{
    1416     // @todo implement
     1416    Q_Q(QWidget);
     1417    if (!q->isWindow())
     1418        return;
     1419
     1420    Q_ASSERT(q->testAttribute(Qt::WA_WState_Created));
     1421
     1422    QByteArray cap = caption.toLocal8Bit();
     1423    WinSetWindowText(frameWinId(), cap);
     1424
     1425    HSWITCH swEntry = topData()->swEntry;
     1426    if (swEntry) {
     1427        SWCNTRL swc;
     1428        WinQuerySwitchEntry(swEntry, &swc);
     1429        strncpy(swc.szSwtitle, cap, sizeof(swc.szSwtitle)-1);
     1430        swc.szSwtitle[sizeof(swc.szSwtitle)-1] = 0;
     1431        WinChangeSwitchEntry(swEntry, &swc);
     1432    }
    14171433}
    14181434
    14191435void QWidgetPrivate::setWindowIcon_sys(bool forceReset)
    14201436{
    1421     // @todo implement
     1437    // @todo implement
    14221438}
    14231439
Note: See TracChangeset for help on using the changeset viewer.