Ignore:
Timestamp:
Nov 16, 2005, 8:36:46 PM (20 years ago)
Author:
dmik
Message:

Transferred Qt for OS/2 version 3.3.1-rc5 sources from the CVS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/dialogs/qmessagebox.cpp

    r7 r8  
    5353#include "qnc_win.h"
    5454#endif
    55 
     55#if defined(Q_WS_PM)
     56//@@TODO (dmik): this is necessary for WinAlarm() which will be
     57//  probably removed from here later.
     58#include "qt_os2.h"
     59#endif
    5660
    5761// Internal class - don't touch
     
    592596            "<p>Qt provides single-source "
    593597            "portability across MS&nbsp;Windows, Mac&nbsp;OS&nbsp;X, "
     598            "IBM&nbsp;OS/2&nbsp;Warp and eComStation, "
    594599            "Linux, and all major commercial Unix variants."
    595600            "<br>Qt is also available for embedded devices.</p>"
     
    10341039#if defined(QT_ACCESSIBILITY_SUPPORT)
    10351040    QAccessible::updateAccessibility( this, 0, QAccessible::Alert );
     1041#else
     1042#if defined(Q_WS_PM)
     1043//@@TODO (dmik): currently, the accessibility support is not implemented
     1044//  on OS/2, but we still need to play a sound when QMessageBox is opened.
     1045    ULONG alarmStyle;
     1046    bool playAlarm = TRUE;
     1047    switch ( icon() ) {
     1048        case Warning:
     1049            alarmStyle = WA_WARNING;
     1050            break;
     1051        case Critical:
     1052            alarmStyle = WA_ERROR;
     1053            break;
     1054        case Information:
     1055            alarmStyle = WA_NOTE;
     1056            break;
     1057        default:
     1058            playAlarm = FALSE;
     1059            break;
     1060    }
     1061    if ( playAlarm )
     1062        WinAlarm( HWND_DESKTOP, alarmStyle );
     1063#endif
    10361064#endif
    10371065    QDialog::showEvent( e );
Note: See TracChangeset for help on using the changeset viewer.