logsui/logsapp/src/logsmainwindow.cpp
changeset 10 b04270301d3b
parent 0 4a5361db8937
child 11 64a47b97e1e1
equal deleted inserted replaced
6:41c0a814d878 10:b04270301d3b
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 #include "logsmainwindow.h"
    18 #include "logsmainwindow.h"
    19 #include "logslogger.h"
    19 #include "logslogger.h"
    20 #include "logsforegroundwatcher.h"
       
    21 #include <QKeyEvent>
    20 #include <QKeyEvent>
    22 #include <xqserviceutil.h>
    21 #include <xqserviceutil.h>
    23 
    22 
    24 // -----------------------------------------------------------------------------
    23 // -----------------------------------------------------------------------------
    25 // LogsMainWindow::LogsMainWindow
    24 // LogsMainWindow::LogsMainWindow
    28 LogsMainWindow::LogsMainWindow() : HbMainWindow(), mForeground(false)
    27 LogsMainWindow::LogsMainWindow() : HbMainWindow(), mForeground(false)
    29 {
    28 {
    30     if ( viewport() ){
    29     if ( viewport() ){
    31         viewport()->grabGesture(Qt::SwipeGesture);
    30         viewport()->grabGesture(Qt::SwipeGesture);
    32     }
    31     }
    33     mWatcher = new LogsForegroundWatcher(this);
       
    34     connect( mWatcher, SIGNAL(losingForeground()), this, SIGNAL(appFocusLost()) );
       
    35     connect( mWatcher, SIGNAL(gainingForeground()), this, SIGNAL(appFocusGained()) );
       
    36 }
    32 }
    37 
    33 
    38 // -----------------------------------------------------------------------------
    34 // -----------------------------------------------------------------------------
    39 // LogsMainWindow::~LogsMainWindow
    35 // LogsMainWindow::~LogsMainWindow
    40 // -----------------------------------------------------------------------------
    36 // -----------------------------------------------------------------------------