summaryrefslogtreecommitdiffstats
path: root/src/gui/ratingwidget.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-02 06:40:27 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-07-02 06:40:27 +0000
commit2595a15ebeb6fc46b7cb241d01ec0c2460ec2111 (patch)
tree18a8f0f4ac5a86dacfa74c3537551ec39bc85e75 /src/gui/ratingwidget.h
parent1d90725a4001fab9d3922b2cbcceeee5e2d1686f (diff)
downloadtellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.tar.gz
tellico-2595a15ebeb6fc46b7cb241d01ec0c2460ec2111.zip
TQt4 port tellico
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/tellico@1239054 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gui/ratingwidget.h')
-rw-r--r--src/gui/ratingwidget.h27
1 files changed, 14 insertions, 13 deletions
diff --git a/src/gui/ratingwidget.h b/src/gui/ratingwidget.h
index 99665b3..9a3e477 100644
--- a/src/gui/ratingwidget.h
+++ b/src/gui/ratingwidget.h
@@ -16,10 +16,10 @@
#include "../datavectors.h"
-#include <qhbox.h>
-#include <qptrlist.h>
-#include <qlabel.h>
-#include <qpixmap.h>
+#include <tqhbox.h>
+#include <tqptrlist.h>
+#include <tqlabel.h>
+#include <tqpixmap.h>
namespace Tellico {
namespace Data {
@@ -30,20 +30,21 @@ namespace Tellico {
/**
* @author Robby Stephenson
*/
-class RatingWidget : public QHBox {
+class RatingWidget : public TQHBox {
Q_OBJECT
+ TQ_OBJECT
-typedef QPtrList<QLabel> LabelList;
+typedef TQPtrList<TQLabel> LabelList;
public:
- RatingWidget(Data::FieldPtr field, QWidget* parent, const char* name = 0);
+ RatingWidget(Data::FieldPtr field, TQWidget* tqparent, const char* name = 0);
void clear();
- QString text() const;
- void setText(const QString& text);
+ TQString text() const;
+ void setText(const TQString& text);
void updateField(Data::FieldPtr field);
- static const QPixmap& pixmap(const QString& value);
+ static const TQPixmap& pixmap(const TQString& value);
public slots:
void update();
@@ -52,7 +53,7 @@ signals:
void modified();
protected:
- virtual void mousePressEvent(QMouseEvent* e);
+ virtual void mousePressEvent(TQMouseEvent* e);
private:
void init();
@@ -66,8 +67,8 @@ private:
int m_min;
int m_max;
- QPixmap m_pixOn;
- QPixmap m_pixOff;
+ TQPixmap m_pixOn;
+ TQPixmap m_pixOff;
};
} // end GUI namespace