You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
604 B
35 lines
604 B
14 years ago
|
/*
|
||
|
* UBWidgetMirror.h
|
||
|
*
|
||
|
* Created on: Nov 25, 2008
|
||
|
* Author: luc
|
||
|
*/
|
||
|
|
||
|
#ifndef UBWIDGETMIRROR_H_
|
||
|
#define UBWIDGETMIRROR_H_
|
||
|
|
||
|
#include <QtGui>
|
||
|
|
||
|
class UBWidgetMirror : public QWidget
|
||
|
{
|
||
|
|
||
|
Q_OBJECT;
|
||
|
|
||
|
public:
|
||
|
UBWidgetMirror(QWidget* sourceWidget, QWidget* parent = 0);
|
||
|
virtual ~UBWidgetMirror();
|
||
|
|
||
|
public slots:
|
||
|
void setSourceWidget(QWidget *sourceWidget);
|
||
|
|
||
|
protected:
|
||
|
bool eventFilter(QObject *obj, QEvent *event);
|
||
|
virtual void paintEvent ( QPaintEvent * event );
|
||
|
|
||
|
private:
|
||
|
QWidget* mSourceWidget;
|
||
|
|
||
|
};
|
||
|
|
||
|
#endif /* UBWIDGETMIRROR_H_ */
|