diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-19 19:03:33 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-19 19:03:33 +0000 |
commit | e69e8b1d09fb579316595b4e6a850e717358a8b1 (patch) | |
tree | a24fc20865f65772f530d16177520190594ffdd2 /ksnapshot/ksnapshot.h | |
parent | eecec9afb81fdebb0f22e9da22635874c403f854 (diff) | |
download | tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.tar.gz tdegraphics-e69e8b1d09fb579316595b4e6a850e717358a8b1.zip |
TQt4 port kdegraphics
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1237557 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksnapshot/ksnapshot.h')
-rw-r--r-- | ksnapshot/ksnapshot.h | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/ksnapshot/ksnapshot.h b/ksnapshot/ksnapshot.h index 81dadd6d..99f0d8c1 100644 --- a/ksnapshot/ksnapshot.h +++ b/ksnapshot/ksnapshot.h @@ -20,16 +20,17 @@ class RegionGrabber; class KSnapshotWidget; -class KSnapshotPreview : public QLabel +class KSnapshotPreview : public TQLabel { Q_OBJECT + TQ_OBJECT public: - KSnapshotPreview(TQWidget *parent, const char *name = 0) - : TQLabel(parent, name) + KSnapshotPreview(TQWidget *tqparent, const char *name = 0) + : TQLabel(tqparent, name) { - setAlignment(AlignHCenter | AlignVCenter); - setCursor(TQCursor(Qt::PointingHandCursor)); + tqsetAlignment(AlignHCenter | AlignVCenter); + setCursor(TQCursor(TQt::PointingHandCursor)); } virtual ~KSnapshotPreview() {} @@ -39,18 +40,18 @@ class KSnapshotPreview : public QLabel // does unexpected things when painting directly onto the pixmap TQPixmap pixmap(pm); TQPixmap handle(15, 15); - TQBitmap mask(15, 15, true); + TQBitmap tqmask(15, 15, true); { - TQPainter p(&mask); - style().drawPrimitive(TQStyle::PE_SizeGrip, &p, TQRect(0, 0, 15, 15), palette().active()); + TQPainter p(&tqmask); + tqstyle().tqdrawPrimitive(TQStyle::PE_SizeGrip, &p, TQRect(0, 0, 15, 15), tqpalette().active()); p.end(); - handle.setMask(mask); + handle.setMask(tqmask); } { TQPainter p(&handle); - style().drawPrimitive(TQStyle::PE_SizeGrip, &p, TQRect(0, 0, 15, 15), palette().active()); + tqstyle().tqdrawPrimitive(TQStyle::PE_SizeGrip, &p, TQRect(0, 0, 15, 15), tqpalette().active()); p.end(); } @@ -91,9 +92,10 @@ class KSnapshotPreview : public QLabel class KSnapshot : public KDialogBase, virtual public KSnapshotIface { Q_OBJECT + TQ_OBJECT public: - KSnapshot(TQWidget *parent= 0, const char *name= 0, bool grabCurrent=false); + KSnapshot(TQWidget *tqparent= 0, const char *name= 0, bool grabCurrent=false); ~KSnapshot(); enum CaptureMode { FullScreen=0, WindowUnderCursor=1, Region=2, ChildWindow=3 }; |