Files
pokerth/src/gui/qt/gametable/mystatuslabel.cpp
T

49 lines
856 B
C++
Raw Normal View History

2008-05-05 07:46:19 +00:00
//
// C++ Implementation: mycardspixmaplabel
//
// Description:
//
//
// Author: FThauer FHammer <f.thauer@web.de>, (C) 2007
//
// Copyright: See COPYING file that comes with this distribution
//
//
#include "mysetlabel.h"
#include "gametableimpl.h"
using namespace std;
MyStatusLabel::MyStatusLabel(QFrame* parent)
: QLabel(parent) {
mousePress = FALSE;
}
MyStatusLabel::~MyStatusLabel()
{
}
void MyStatusLabel::mousePressEvent(QMouseEvent * event) {
if (!mousePress && objectName().contains("textLabel_Status0")) {
mousePress = TRUE;
myW->mouseOverFlipCards(TRUE);
}
QLabel::mousePressEvent(event);
}
void MyStatusLabel::mouseReleaseEvent(QMouseEvent * event) {
if (mousePress && objectName().contains("textLabel_Status0")) {
mousePress = FALSE;
myW->mouseOverFlipCards(FALSE);
}
QLabel::mouseReleaseEvent(event);
}