diff options
Diffstat (limited to 'doc/customstyles.doc')
-rw-r--r-- | doc/customstyles.doc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/customstyles.doc b/doc/customstyles.doc index ea0bf0c9a..2b4b02b35 100644 --- a/doc/customstyles.doc +++ b/doc/customstyles.doc @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Documentation for creating custom styles with QStyle +** Documentation for creating custom styles with TQStyle ** ** Copyright (C) 1992-2008 Trolltech ASA. All rights reserved. ** @@ -74,7 +74,7 @@ example we will inherit from QWindowsStyle. Depending on which parts of the base style you want to change, you must re-implement the functions that are used to draw those parts -of the interface. If you take a look at the \l{QStyle} documentation, +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 @@ -96,7 +96,7 @@ public: const QRect & r, const QColorGroup & cg, SFlags flags = Style_Default, - const QStyleOption & = QStyleOption::Default ) const; + const TQStyleOption & = TQStyleOption::Default ) const; private: // Disabled copy constructor and operator= @@ -110,7 +110,7 @@ style. TQObject is the base class for all style classes in Qt, and a TQObject inherently cannot be copied since there are some aspects of it that are not copyable. -From the QStyle docs we see that \c PE_ArrowUp, \c PE_ArrowDown, \c +From the TQStyle docs we see that \c PE_ArrowUp, \c PE_ArrowDown, \c PE_ArrowLeft and \c PE_ArrowRight are the primitives we need to do something with. We get the following in our drawPrimitive() function: @@ -128,7 +128,7 @@ void CustomStyle::drawPrimitive( PrimitiveElement pe, const QRect & r, const QColorGroup & cg, SFlags flags, - const QStyleOption & opt ) const + const TQStyleOption & opt ) const { // we are only interested in the arrows if (pe >= PE_ArrowUp && pe <= PE_ArrowLeft) { |