preparing gui for maemo version; running astyle
This commit is contained in:
@@ -18,7 +18,11 @@
|
||||
#ifndef GAMETABLEIMPL_H
|
||||
#define GAMETABLEIMPL_H
|
||||
|
||||
#ifdef GUI_800x480
|
||||
#include "ui_gametable_800x480.h"
|
||||
#else
|
||||
#include "ui_gametable.h"
|
||||
#endif
|
||||
#include "game_defs.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
using namespace std;
|
||||
|
||||
MyActionButton::MyActionButton(QGroupBox* parent)
|
||||
: QPushButton(parent), myStyle(NULL), eatMyEvents(false)
|
||||
: QPushButton(parent), myStyle(NULL), eatMyEvents(false)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ void MyActionButton::paintEvent(QPaintEvent * event)
|
||||
bool MyActionButton::event(QEvent *event)
|
||||
{
|
||||
if ((event->type() == QEvent::KeyPress || event->type() == QEvent::MouseButtonPress) && eatMyEvents ) {
|
||||
return true;
|
||||
return true;
|
||||
}
|
||||
return QWidget::event(event);
|
||||
}
|
||||
|
||||
@@ -39,7 +39,9 @@ public:
|
||||
myStyle = theValue;
|
||||
}
|
||||
|
||||
void setEatMyEvents(bool e) { eatMyEvents = e; }
|
||||
void setEatMyEvents(bool e) {
|
||||
eatMyEvents = e;
|
||||
}
|
||||
bool event(QEvent *e);
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user