2 * Author - Bertrand Songis <bsongis@gmail.com>
4 * Based on th9x -> http://code.google.com/p/th9x/
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
23 class splashLabel
: public QLabel
30 explicit splashLabel(QDialog
* parent
= 0) :
35 virtual void setId(int labelindex
)
47 virtual void mousePressEvent(QMouseEvent
* event
)
49 if (event
->type() == QEvent::MouseButtonDblClick
) {
50 emit
buttonPressed(Qt::Key_Enter
);
53 emit
buttonPressed(Qt::Key_Select
);
55 // QWidget::mousePressEvent(event);
58 virtual void mouseReleaseEvent(QMouseEvent
* event
)
61 // emit buttonPressed(0);
62 // QWidget::mouseReleaseEvent(event);
66 /*void paintEvent(QPaintEvent *)
71 style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this);
75 void buttonPressed(int button
);
80 #endif /* SPLASHLABEL_H */