diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
commit | 47c8a359c5276062c4bc17f0e82410f29081b502 (patch) | |
tree | 2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /knewsticker/newsscroller.h | |
parent | 6f82532777a35e0e60bbd2b290b2e93e646f349b (diff) | |
download | tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'knewsticker/newsscroller.h')
-rw-r--r-- | knewsticker/newsscroller.h | 44 |
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; }; |