author | llornkcor <llornkcor> | 2002-11-08 13:25:26 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-11-08 13:25:26 (UTC) |
commit | ada5be67fec81ed8845a6f358bbf7e3b181d417e (patch) (unidiff) | |
tree | 7534fb32838b3323f64328f863d621d959b716fb /core/apps/embeddedkonsole/TEWidget.cpp | |
parent | 8714e7c5271b80bf61de10f3726bce8b6a85127f (diff) | |
download | opie-ada5be67fec81ed8845a6f358bbf7e3b181d417e.zip opie-ada5be67fec81ed8845a6f358bbf7e3b181d417e.tar.gz opie-ada5be67fec81ed8845a6f358bbf7e3b181d417e.tar.bz2 |
option for beep
Diffstat (limited to 'core/apps/embeddedkonsole/TEWidget.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/apps/embeddedkonsole/TEWidget.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/apps/embeddedkonsole/TEWidget.cpp b/core/apps/embeddedkonsole/TEWidget.cpp index 4c6ea2a..c220e11 100644 --- a/core/apps/embeddedkonsole/TEWidget.cpp +++ b/core/apps/embeddedkonsole/TEWidget.cpp | |||
@@ -323,25 +323,26 @@ TEWidget::TEWidget(QWidget *parent, const char *name) : QFrame(parent,name) | |||
323 | blinking = TRUE; | 323 | blinking = TRUE; |
324 | 324 | ||
325 | resizing = FALSE; | 325 | resizing = FALSE; |
326 | actSel = 0; | 326 | actSel = 0; |
327 | image = 0; | 327 | image = 0; |
328 | lines = 1; | 328 | lines = 1; |
329 | columns = 1; | 329 | columns = 1; |
330 | font_w = 1; | 330 | font_w = 1; |
331 | font_h = 1; | 331 | font_h = 1; |
332 | font_a = 1; | 332 | font_a = 1; |
333 | word_selection_mode = FALSE; | 333 | word_selection_mode = FALSE; |
334 | hposition = 0; | 334 | hposition = 0; |
335 | vcolumns = 0; | 335 | vcolumns = 0; |
336 | useBeep = true; | ||
336 | 337 | ||
337 | setMouseMarks(TRUE); | 338 | setMouseMarks(TRUE); |
338 | setVTFont( QFont("fixed") ); | 339 | setVTFont( QFont("fixed") ); |
339 | setColorTable(base_color_table); // init color table | 340 | setColorTable(base_color_table); // init color table |
340 | 341 | ||
341 | qApp->installEventFilter( this ); //FIXME: see below | 342 | qApp->installEventFilter( this ); //FIXME: see below |
342 | // KCursor::setAutoHideCursor( this, true ); | 343 | // KCursor::setAutoHideCursor( this, true ); |
343 | 344 | ||
344 | // Init DnD //////////////////////////////////////////////////////////////// | 345 | // Init DnD //////////////////////////////////////////////////////////////// |
345 | currentSession = NULL; | 346 | currentSession = NULL; |
346 | // setAcceptDrops(true); // attempt | 347 | // setAcceptDrops(true); // attempt |
347 | // m_drop = new QPopupMenu(this); | 348 | // m_drop = new QPopupMenu(this); |
@@ -1098,25 +1099,27 @@ void TEWidget::frameChanged() | |||
1098 | } | 1099 | } |
1099 | 1100 | ||
1100 | /* ------------------------------------------------------------------------- */ | 1101 | /* ------------------------------------------------------------------------- */ |
1101 | /* */ | 1102 | /* */ |
1102 | /* Sound */ | 1103 | /* Sound */ |
1103 | /* */ | 1104 | /* */ |
1104 | /* ------------------------------------------------------------------------- */ | 1105 | /* ------------------------------------------------------------------------- */ |
1105 | 1106 | ||
1106 | void TEWidget::Bell() | 1107 | void TEWidget::Bell() |
1107 | { | 1108 | { |
1108 | //#ifdef QT_QWS_SHARP | 1109 | //#ifdef QT_QWS_SHARP |
1109 | //# ifndef QT_NO_COP | 1110 | //# ifndef QT_NO_COP |
1110 | QCopEnvelope( "QPE/TaskBar", "soundAlarm()" ); | 1111 | if(useBeep) |
1112 | QCopEnvelope( "QPE/TaskBar", "soundAlarm()" ); | ||
1113 | |||
1111 | //# endif | 1114 | //# endif |
1112 | //#else | 1115 | //#else |
1113 | //# ifndef QT_NO_SOUND | 1116 | //# ifndef QT_NO_SOUND |
1114 | // QSound::play(Resource::findSound("alarm")); | 1117 | // QSound::play(Resource::findSound("alarm")); |
1115 | //# endif | 1118 | //# endif |
1116 | //#endif | 1119 | //#endif |
1117 | 1120 | ||
1118 | // QApplication::beep(); | 1121 | // QApplication::beep(); |
1119 | } | 1122 | } |
1120 | 1123 | ||
1121 | /* ------------------------------------------------------------------------- */ | 1124 | /* ------------------------------------------------------------------------- */ |
1122 | /* */ | 1125 | /* */ |