summaryrefslogtreecommitdiffstats
path: root/knewsticker/newsscroller.h
diff options
context:
space:
mode:
Diffstat (limited to 'knewsticker/newsscroller.h')
-rw-r--r--knewsticker/newsscroller.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/knewsticker/newsscroller.h b/knewsticker/newsscroller.h
index efe0c3c2..3d37dc8d 100644
--- a/knewsticker/newsscroller.h
+++ b/knewsticker/newsscroller.h
@@ -19,24 +19,24 @@
#include "configaccess.h"
#include "newsengine.h"
-#include <qframe.h>
-#include <qptrlist.h>
-#include <qpixmap.h>
+#include <tqframe.h>
+#include <tqptrlist.h>
+#include <tqpixmap.h>
class QTimer;
class Headline;
template <class> class QPtrList;
-typedef QPtrList<Headline> HeadlineList;
+typedef TQPtrList<Headline> HeadlineList;
class NewsScroller : public QFrame
{
Q_OBJECT
public:
- NewsScroller(QWidget *, ConfigAccess *, const char * = 0);
+ NewsScroller(TQWidget *, ConfigAccess *, const char * = 0);
- virtual QSize sizeHint() const;
- virtual QSizePolicy sizePolicy() const;
+ virtual TQSize sizeHint() const;
+ virtual TQSizePolicy sizePolicy() const;
// Convenience stuff. Somehow ugly, no?
inline bool horizontal() const
@@ -63,15 +63,15 @@ class NewsScroller : public QFrame
void contextMenu();
protected:
- virtual void enterEvent(QEvent *);
- virtual void mousePressEvent(QMouseEvent *);
- virtual void mouseReleaseEvent(QMouseEvent *);
- virtual void mouseMoveEvent(QMouseEvent *);
- virtual void wheelEvent(QWheelEvent *);
- virtual void leaveEvent(QEvent *);
- virtual void drawContents(QPainter *);
- virtual void dragEnterEvent( QDragEnterEvent *);
- virtual void dropEvent(QDropEvent *);
+ virtual void enterEvent(TQEvent *);
+ virtual void mousePressEvent(TQMouseEvent *);
+ virtual void mouseReleaseEvent(TQMouseEvent *);
+ virtual void mouseMoveEvent(TQMouseEvent *);
+ virtual void wheelEvent(TQWheelEvent *);
+ virtual void leaveEvent(TQEvent *);
+ virtual void drawContents(TQPainter *);
+ virtual void dragEnterEvent( TQDragEnterEvent *);
+ virtual void dropEvent(TQDropEvent *);
protected slots:
void scroll(int = 1, bool = true);
@@ -80,21 +80,21 @@ class NewsScroller : public QFrame
private:
int scrollWidth() const;
int scrollHeight() const;
- bool updateActive(const QPoint &);
- bool isHeadline(const QString &) const;
+ bool updateActive(const TQPoint &);
+ bool isHeadline(const TQString &) const;
int speedAsInterval( int speed );
private:
friend class Headline;
ConfigAccess *m_cfg;
- QTimer *m_scrollTimer;
+ TQTimer *m_scrollTimer;
mutable HeadlineList m_headlines;
Headline *m_activeHeadline;
- QPixmap m_separator;
+ TQPixmap m_separator;
int m_offset;
- QPoint m_dragPos;
+ TQPoint m_dragPos;
bool m_mouseDrag;
- QString m_tempHeadline;
+ TQString m_tempHeadline;
float m_totalStepping;
float m_stepping;
};