diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-08-24 20:19:50 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-08-29 22:23:35 +0900 |
commit | d35eedcd87d59e716c6d49bbb6b634ef1a7660c5 (patch) | |
tree | 204d752457acf6403c99f3928f02b612ff14d178 /doc/customstyles.doc | |
parent | ddce1c91f8582885497b463b24bac59f6fdfdf63 (diff) | |
download | tqt3-d35eedcd87d59e716c6d49bbb6b634ef1a7660c5.tar.gz tqt3-d35eedcd87d59e716c6d49bbb6b634ef1a7660c5.zip |
Rename style nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/customstyles.doc')
-rw-r--r-- | doc/customstyles.doc | 14 |
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 |