29 lines
628 B
C++
29 lines
628 B
C++
#include "UsctApplication.h"
|
|
#include "utilities/TouchScreenSignalSender.h"
|
|
#include "dialogs/DialogManager.h"
|
|
|
|
UsctApplication::UsctApplication(int& argc, char** argv)
|
|
: QApplication(argc, argv)
|
|
{
|
|
|
|
}
|
|
|
|
UsctApplication::~UsctApplication()
|
|
{
|
|
}
|
|
|
|
bool UsctApplication::notify(QObject* aReceiver, QEvent* aEvent)
|
|
{
|
|
if (aEvent->type() == QEvent::MouseButtonPress)
|
|
{
|
|
TouchScreenSignalSender::getInstance()->sendTouchScreenSignal();
|
|
}
|
|
else if (aEvent->type() == QEvent::TouchCancel)
|
|
{
|
|
DialogManager::Default()->setFocusToTopDialog();
|
|
}
|
|
|
|
|
|
return QApplication::notify(aReceiver, aEvent);
|
|
}
|