summaryrefslogtreecommitdiffstats
path: root/kviewshell/pageNumber.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 /kviewshell/pageNumber.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 'kviewshell/pageNumber.h')
-rw-r--r--kviewshell/pageNumber.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/kviewshell/pageNumber.h b/kviewshell/pageNumber.h
index 161760fc..9fd48dc6 100644
--- a/kviewshell/pageNumber.h
+++ b/kviewshell/pageNumber.h
@@ -17,8 +17,8 @@
/** \brief Class to represent a page number
-The class PageNumber is really nothing but an alias for Q_UINT16, and
-can be casted to and from Q_UINT16. It is used in kviewshell to remind
+The class PageNumber is really nothing but an alias for TQ_UINT16, and
+can be casted to and from TQ_UINT16. It is used in kviewshell to remind
the programmer of the convention that page numbers start at '1' (for
'first page'), and that the value '0' means 'illegal page number' or
'no page number'. Accordingly, the value '0' is also named
@@ -43,13 +43,13 @@ class PageNumber
@param num page number that is set initially
*/
- PageNumber(Q_UINT16 num) {pgNum = num;}
+ PageNumber(TQ_UINT16 num) {pgNum = num;}
- /** \brief this method implements typecasts from Q_UINT16 */
- PageNumber &operator=(const Q_UINT16 p) { pgNum = p; return *this; }
+ /** \brief this method implements typecasts from TQ_UINT16 */
+ PageNumber &operator=(const TQ_UINT16 p) { pgNum = p; return *this; }
- /** \brief This method implements typecasts to Q_UINT16 */
- operator Q_UINT16() const { return pgNum; }
+ /** \brief This method implements typecasts to TQ_UINT16 */
+ operator TQ_UINT16() const { return pgNum; }
/** \brief Checks if the page number is invalid
@@ -59,7 +59,7 @@ class PageNumber
private:
/** \brief Single number that represents the page number */
- Q_UINT16 pgNum;
+ TQ_UINT16 pgNum;
};
#endif