start anti-peek feature

This commit is contained in:
doitux
2007-08-19 12:33:24 +00:00
parent f05ccc1469
commit 260182f570
8 changed files with 186 additions and 15 deletions
+48
View File
@@ -0,0 +1,48 @@
//
// 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 "mainwindowimpl.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);
}