mirror of
https://github.com/chris2511/xca.git
synced 2026-09-14 11:06:19 +05:00
42 lines
582 B
C++
42 lines
582 B
C++
/* vi: set sw=4 ts=4:
|
|
*
|
|
* Copyright (C) 2001 - 2007 Christian Hohnstaedt.
|
|
*
|
|
* All rights reserved.
|
|
*/
|
|
|
|
#ifndef CLICKLABEL_H
|
|
#define CLICKLABEL_H
|
|
|
|
#include <qlabel.h>
|
|
|
|
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
|