From 11f31c37e5fa4889d9989f10272f44845449cb7b Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 6 Sep 2010 20:59:29 +0000 Subject: Initial TQt conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1172292 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/gui/general/RosegardenScrollView.h | 44 +++++++++++++++++----------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'src/gui/general/RosegardenScrollView.h') diff --git a/src/gui/general/RosegardenScrollView.h b/src/gui/general/RosegardenScrollView.h index 6a0dab7..a0aafbb 100644 --- a/src/gui/general/RosegardenScrollView.h +++ b/src/gui/general/RosegardenScrollView.h @@ -26,16 +26,16 @@ #ifndef _RG_ROSEGARDENSCROLLVIEW_H_ #define _RG_ROSEGARDENSCROLLVIEW_H_ -#include -#include -#include -#include +#include +#include +#include +#include -class QWidget; -class QWheelEvent; -class QScrollBar; -class QResizeEvent; +class TQWidget; +class TQWheelEvent; +class TQScrollBar; +class TQResizeEvent; namespace Rosegarden @@ -44,7 +44,7 @@ namespace Rosegarden /** - * A QScrollView with more elaborate auto-scrolling capabilities + * A TQScrollView with more elaborate auto-scrolling capabilities * and the ability to have a "fixed" (non-scrolling) widget at its bottom, * just above the bottom scrollbar. */ @@ -52,7 +52,7 @@ class RosegardenScrollView : public QScrollView { Q_OBJECT public: - RosegardenScrollView(QWidget* parent=0, const char* name=0, WFlags f=0); + RosegardenScrollView(TQWidget* parent=0, const char* name=0, WFlags f=0); /** * EditTool::handleMouseMove() returns a OR-ed combination of these @@ -74,12 +74,12 @@ public: * Sets the widget which will be between the scrollable part of the view * and the horizontal scrollbar */ - void setBottomFixedWidget(QWidget*); + void setBottomFixedWidget(TQWidget*); void updateBottomWidgetGeometry(); /// Map a point with the inverse world matrix -// QPoint inverseMapPoint(const QPoint& p) { return inverseWorldMatrix().map(p); } +// TQPoint inverseMapPoint(const TQPoint& p) { return inverseWorldMatrix().map(p); } void setSmoothScroll(bool s) { m_smoothScroll = s; } @@ -89,7 +89,7 @@ public: int getDeltaScroll() { return m_minDeltaScroll; } - virtual void wheelEvent(QWheelEvent *); + virtual void wheelEvent(TQWheelEvent *); public slots: /** @@ -122,7 +122,7 @@ public slots: /** * Set the x and y scrollbars to a particular position */ - void slotSetScrollPos(const QPoint &); + void slotSetScrollPos(const TQPoint &); void startAutoScroll(); void startAutoScroll(int directionConstraint); @@ -139,27 +139,27 @@ signals: protected: - virtual void resizeEvent(QResizeEvent*); - virtual void setHBarGeometry(QScrollBar &hbar, int x, int y, int w, int h); + virtual void resizeEvent(TQResizeEvent*); + virtual void setHBarGeometry(TQScrollBar &hbar, int x, int y, int w, int h); - virtual QScrollBar* getMainHorizontalScrollBar() { return horizontalScrollBar(); } + virtual TQScrollBar* getMainHorizontalScrollBar() { return horizontalScrollBar(); } //--------------- Data members --------------------------------- enum ScrollDirection { None, Top, Bottom, Left, Right }; - QWidget* m_bottomWidget; + TQWidget* m_bottomWidget; int m_currentBottomWidgetHeight; bool m_smoothScroll; int m_smoothScrollTimeInterval; float m_minDeltaScroll; - QTime m_scrollTimer; - QTime m_scrollAccelerationTimer; + TQTime m_scrollTimer; + TQTime m_scrollAccelerationTimer; - QTimer m_autoScrollTimer; + TQTimer m_autoScrollTimer; int m_autoScrollTime; int m_autoScrollAccel; - QPoint m_previousP; + TQPoint m_previousP; int m_autoScrollXMargin; int m_autoScrollYMargin; ScrollDirection m_currentScrollDirection; -- cgit v1.2.1