Diffstat (limited to 'core/apps/embeddedkonsole/TEWidget.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/apps/embeddedkonsole/TEWidget.cpp | 3 |
1 files changed, 3 insertions, 0 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 | |||
@@ -324,24 +324,25 @@ TEWidget::TEWidget(QWidget *parent, const char *name) : QFrame(parent,name) | |||
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 |
1111 | if(useBeep) | ||
1110 | QCopEnvelope( "QPE/TaskBar", "soundAlarm()" ); | 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 | /* */ |