1. initialize class-member variables
2. delete unnecessary null checking
Change-Id: Ie20dfc5789f7d9be8cb08487c7bfe460507bcb2c
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
this->offGuide = NULL;
this->offGuideShown = false;
+ this->isTouch = is_touchscreen_enabled();
+
+ /* touch screen */
this->tsHelper = new TouchScreenHelper(this);
- isTouch = is_touchscreen_enabled();
- if (!isTouch) {
- prevX = 0;
- prevY = 0;
- lastMouseTime.tv_sec = 0;
- mouseStatus = MOUSE_LEAVE;
- }
+ /* mouse */
+ this->prevX = 0;
+ this->prevY = 0;
+ this->lastMouseTime.tv_sec = 0;
+ this->mouseStatus = MOUSE_LEAVE;
win->getMainView()->getKbdHelper()->setMtTracker(tsHelper->getMtTracker());
{
public:
MenuItem(int type, QString name);
- ~MenuItem();
+ virtual ~MenuItem();
int getType();
QString getName();
qt5App->processEvents(QEventLoop::ExcludeUserInputEvents);
qt5App->quit();
- if (mainwindow) {
-// FIXME: It causes SIGSEGV now...
-// delete mainwindow;
- mainwindow = NULL;
- }
+#if 0
+ //FIXME: It causes SIGSEGV now...
+ delete mainwindow;
+ mainwindow = NULL;
+#endif
- if (uiInfo) {
- delete uiInfo;
- uiInfo = NULL;
- }
+ delete uiInfo;
+ uiInfo = NULL;
}
void qt5_early_prepare(bool isOnscreen)