Logo Search packages:      
Sourcecode: zeiberbude version File versions

zblabel.cc

/***************************************************************************
                          zlabel.cpp  -  description
                             -------------------
    begin                : Sun Oct 14 2001
    copyright            : (C) 2001 by Christian Toepp
    email                : toepp@rancon.de
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/
#include <qevent.h>
#include "zblabel.hh"

ZLabel::ZLabel(QWidget *parent, const char *name) : QLabel(parent,name){
      active=true;
}
ZLabel::~ZLabel(){
}
/** No descriptions */
00026 void ZLabel::mousePressEvent(QMouseEvent *e){
      if(e->button() == Qt::LeftButton)
            emit pressed();
}
/** No descriptions */
00031 void ZLabel::enterEvent(QEvent *e){
  if(!e->spontaneous ()){
    if(active)
      setCursor(QCursor(PointingHandCursor));
  }
}
/** No descriptions */
00038 void ZLabel::leaveEvent(QEvent *e){
  if(!e->spontaneous ())
    unsetCursor();
}

Generated by  Doxygen 1.6.0   Back to index