summaryrefslogtreecommitdiffstats
path: root/kgeography/src/mapwidget.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:39:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:39:55 +0000
commit0a6e0958c03e41c87b15557b6f407874f20c2f8d (patch)
tree2cdd58c4013b1be09cfcbb4ddae2b05712b9aeee /kgeography/src/mapwidget.h
parent83f9dfafc157ff7823804b3ff457b43d021a5b4b (diff)
downloadtdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.tar.gz
tdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1157642 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kgeography/src/mapwidget.h')
-rw-r--r--kgeography/src/mapwidget.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/kgeography/src/mapwidget.h b/kgeography/src/mapwidget.h
index 282fa1b4..1bc37cb3 100644
--- a/kgeography/src/mapwidget.h
+++ b/kgeography/src/mapwidget.h
@@ -11,23 +11,23 @@
#ifndef MAPWIDGET_H
#define MAPWIDGET_H
-#include <qimage.h>
-#include <qpoint.h>
-#include <qwidget.h>
+#include <tqimage.h>
+#include <tqpoint.h>
+#include <tqwidget.h>
class mapWidget : public QWidget
{
Q_OBJECT
public:
- mapWidget(QWidget *parent);
+ mapWidget(TQWidget *parent);
- void init(const QString &path, int scrollBarWidth, int scrollBarHeight);
+ void init(const TQString &path, int scrollBarWidth, int scrollBarHeight);
void setMapMove(bool b);
void setMapZoom(bool b);
- QSize sizeHint() const;
- QSize mapSize() const;
+ TQSize sizeHint() const;
+ TQSize mapSize() const;
public slots:
void updateHPosition(int value);
@@ -38,29 +38,29 @@ Q_OBJECT
void setMoveActionChecked(bool b);
void setZoomActionChecked(bool b);
void setMoveActionEnabled(bool b);
- void clicked(QRgb, const QPoint&);
+ void clicked(QRgb, const TQPoint&);
void updatePosition(int X, int Y);
void updateVisibleSize(int w, int h);
void updateMaximumSize(int w, int h);
protected:
- void mousePressEvent(QMouseEvent *e);
- void mouseMoveEvent(QMouseEvent *e);
- void mouseReleaseEvent(QMouseEvent *e);
- void resizeEvent(QResizeEvent *e);
+ void mousePressEvent(TQMouseEvent *e);
+ void mouseMoveEvent(TQMouseEvent *e);
+ void mouseReleaseEvent(TQMouseEvent *e);
+ void resizeEvent(TQResizeEvent *e);
private:
void emitMoveActionEnabled();
- QImage *getCurrentImage();
+ TQImage *getCurrentImage();
void updateShownImage();
- QImage p_originalImage, p_zoomedImageShown;
+ TQImage p_originalImage, p_zoomedImageShown;
bool p_zooming, p_wantZoom, p_moving, p_wantMove;
- QPoint p_initial, p_prev; // rubberbanding and moving
+ TQPoint p_initial, p_prev; // rubberbanding and moving
int p_zoomX, p_zoomY, p_zoomW, p_zoomH;
double p_lastFactorX, p_lastFactorY;
// useful to not do that many updateShownImage
- QSize p_oldSize;
+ TQSize p_oldSize;
int p_oldZoomX, p_oldZoomY, p_oldZoomW, p_oldZoomH;
int p_scrollBarWidth, p_scrollBarHeight;
bool p_scrollBarsVisible;