Changeset 8 for trunk/src/dialogs/qmessagebox.cpp
- Timestamp:
- Nov 16, 2005, 8:36:46 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/dialogs/qmessagebox.cpp
r7 r8 53 53 #include "qnc_win.h" 54 54 #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 56 60 57 61 // Internal class - don't touch … … 592 596 "<p>Qt provides single-source " 593 597 "portability across MS Windows, Mac OS X, " 598 "IBM OS/2 Warp and eComStation, " 594 599 "Linux, and all major commercial Unix variants." 595 600 "<br>Qt is also available for embedded devices.</p>" … … 1034 1039 #if defined(QT_ACCESSIBILITY_SUPPORT) 1035 1040 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 1036 1064 #endif 1037 1065 QDialog::showEvent( e );
Note:
See TracChangeset
for help on using the changeset viewer.