xca/widgets/clicklabel.h
Christian Hohnstaedt de851ed3a9 Changed all header includes to QT4 names and included the correct component name
By Andreas Piesk. Thanks!

adapt to HEAD since the patch is based on 0.6.4

drop qt4/Qt include in list of includes during configuration
2010-06-13 11:49:38 +02:00

42 lines
590 B
C++

/* vi: set sw=4 ts=4:
*
* Copyright (C) 2001 - 2007 Christian Hohnstaedt.
*
* All rights reserved.
*/
#ifndef __CLICKLABEL_H
#define __CLICKLABEL_H
#include <QtGui/QLabel>
class QMouseEvent;
class ClickLabel : public QLabel
{
Q_OBJECT
public:
ClickLabel(QWidget *parent);
void setRed();
void setGreen();
void disableToolTip();
protected:
void mouseDoubleClickEvent ( QMouseEvent * e );
void setColor(const QColor &col);
signals:
void doubleClicked(QString text);
};
class CopyLabel : public QLabel
{
Q_OBJECT
public:
CopyLabel(QWidget *parent);
};
#endif