summaryrefslogtreecommitdiffstats
path: root/kolourpaint/kpselection.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-19 19:03:33 +0000
commite69e8b1d09fb579316595b4e6a850e717358a8b1 (patch)
treea24fc20865f65772f530d16177520190594ffdd2 /kolourpaint/kpselection.h
parenteecec9afb81fdebb0f22e9da22635874c403f854 (diff)
downloadtdegraphics-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 'kolourpaint/kpselection.h')
-rw-r--r--kolourpaint/kpselection.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/kolourpaint/kpselection.h b/kolourpaint/kpselection.h
index b99f5cb9..e7e54d54 100644
--- a/kolourpaint/kpselection.h
+++ b/kolourpaint/kpselection.h
@@ -52,9 +52,10 @@ class TQSize;
* Holds a selection - will also be used for the clipboard
* so that we can retain the border.
*/
-class kpSelection : public QObject
+class kpSelection : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
enum Type
@@ -102,7 +103,7 @@ public:
int size () const;
- TQBitmap maskForOwnType (bool nullForRectangular = false) const;
+ TQBitmap tqmaskForOwnType (bool nullForRectangular = false) const;
// synonyms
TQPoint topLeft () const;
@@ -126,8 +127,8 @@ public:
// (for non-rectangular selections, may return false even if
// kpView::onSelectionResizeHandle())
- bool contains (const TQPoint &point) const;
- bool contains (int x, int y);
+ bool tqcontains (const TQPoint &point) const;
+ bool tqcontains (int x, int y);
// (Avoid using for text selections since text selection may
@@ -168,7 +169,7 @@ public:
// Be more robust when external enforcement fails.
static int minimumWidthForTextStyle (const kpTextStyle &);
static int minimumHeightForTextStyle (const kpTextStyle &);
- static TQSize minimumSizeForTextStyle (const kpTextStyle &);
+ static TQSize tqminimumSizeForTextStyle (const kpTextStyle &);
static int preferredMinimumWidthForTextStyle (const kpTextStyle &textStyle);
static int preferredMinimumHeightForTextStyle (const kpTextStyle &textStyle);
@@ -176,7 +177,7 @@ public:
int minimumWidth () const;
int minimumHeight () const;
- TQSize minimumSize () const;
+ TQSize tqminimumSize () const;
int textRowForPoint (const TQPoint &globalPoint) const;
int textColForPoint (const TQPoint &globalPoint) const;