QTfrontend/SquareLabel.h
changeset 310 b95fd124cb09
parent 184 f97a7a3dc8f6
child 486 7ea71cd3acd5
--- a/QTfrontend/SquareLabel.h	Sun Jan 07 17:48:18 2007 +0000
+++ b/QTfrontend/SquareLabel.h	Sun Jan 07 22:54:08 2007 +0000
@@ -19,17 +19,23 @@
 #ifndef _SQUARELABEL_H
 #define _SQUARELABEL_H
 
-#include <QLabel>
+#include <QWidget>
+#include <QPixmap>
 
-class SquareLabel : public QLabel
+class SquareLabel : public QWidget
 {
 	Q_OBJECT
 
 public:
 	SquareLabel(QWidget * parent = 0);
 
+	void setPixmap(const QPixmap & pixmap);
 protected:
 	virtual void paintEvent(QPaintEvent * event);
+
+private:
+	QPixmap pixmap;
+
 };
 
 #endif // _SQUARELABEL_H