summaryrefslogtreecommitdiffstats
path: root/doc/customstyles.doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/customstyles.doc')
-rw-r--r--doc/customstyles.doc14
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/customstyles.doc b/doc/customstyles.doc
index 8fceeeca4..fb6e49382 100644
--- a/doc/customstyles.doc
+++ b/doc/customstyles.doc
@@ -64,11 +64,11 @@ applications.
The first step is to pick one of the base styles provided with TQt to
build your custom style from. The choice will depend on what look and
feel you are trying to achieve. We recommend that you choose from the
-QWindowsStyle derived classes or the QMotifStyle derived classes.
+TQWindowsStyle derived classes or the TQMotifStyle derived classes.
These are the two base look and feel classes in the TQt style engine.
-Inheriting directly from QCommonStyle is also an option if you want to
+Inheriting directly from TQCommonStyle is also an option if you want to
start almost from scratch when implementing your style. In this simple
-example we will inherit from QWindowsStyle.
+example we will inherit from TQWindowsStyle.
\section2 2. Re-implement the necessary functions in your derived class.
@@ -77,15 +77,15 @@ must re-implement the functions that are used to draw those parts
of the interface. If you take a look at the \l{TQStyle} documentation,
you will find a list of the different primitives, controls and complex
controls. In this example we will first change the look of the
-standard arrows that are used in the QWindowsStyle. The arrows are
+standard arrows that are used in the TQWindowsStyle. The arrows are
PrimitiveElements that are drawn by the drawPrimitive() function,
so we need to re-implement that function. We need the following class
declaration:
\code
-#include <ntqwindowsstyle.h>
+#include <tqwindowsstyle.h>
-class CustomStyle : public QWindowsStyle {
+class CustomStyle : public TQWindowsStyle {
TQ_OBJECT
public:
CustomStyle();
@@ -179,7 +179,7 @@ void CustomStyle::drawPrimitive( PrimitiveElement pe,
p->drawPolygon( pa );
} else {
// let the base style handle the other primitives
- QWindowsStyle::drawPrimitive( pe, p, r, cg, flags, data );
+ TQWindowsStyle::drawPrimitive( pe, p, r, cg, flags, data );
}
}
\endcode