diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-07-15 19:08:22 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-07-18 09:31:41 +0900 |
commit | a30f5359f03c3017fa19a6770fab32d25d22cb87 (patch) | |
tree | cb365dd7a1c3666e3f972c6cad04be7b8e846cba /doc/html/listboxcombo-example.html | |
parent | 25ad1267da6916e738a126ff5a9b41cd686adfc6 (diff) | |
download | tqt-a30f5359.tar.gz tqt-a30f5359.zip |
Rename graphics class nt* related files to equivalent tq* (part 1)
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/listboxcombo-example.html')
-rw-r--r-- | doc/html/listboxcombo-example.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/html/listboxcombo-example.html b/doc/html/listboxcombo-example.html index 091cfb27d..313df6811 100644 --- a/doc/html/listboxcombo-example.html +++ b/doc/html/listboxcombo-example.html @@ -98,7 +98,7 @@ protected slots: #include <<a href="qpixmap-h.html">ntqpixmap.h</a>> #include <<a href="qlabel-h.html">ntqlabel.h</a>> #include <<a href="tqimage-h.html">tqimage.h</a>> -#include <<a href="qpainter-h.html">ntqpainter.h</a>> +#include <<a href="tqpainter-h.html">tqpainter.h</a>> #include <<a href="tqstyle-h.html">tqstyle.h</a>> @@ -112,21 +112,21 @@ public: } protected: - virtual void paint( <a href="ntqpainter.html">TQPainter</a> * ); + virtual void paint( <a href="tqpainter.html">TQPainter</a> * ); virtual int width( const <a href="ntqlistbox.html">TQListBox</a>* ) const { return 100; } virtual int height( const <a href="ntqlistbox.html">TQListBox</a>* ) const { return 16; } }; -<a name="x1410"></a>void MyListBoxItem::<a href="qlistboxitem.html#paint">paint</a>( <a href="ntqpainter.html">TQPainter</a> *painter ) +<a name="x1410"></a>void MyListBoxItem::<a href="qlistboxitem.html#paint">paint</a>( <a href="tqpainter.html">TQPainter</a> *painter ) { // evil trick: find out whether we are painted onto our listbox -<a name="x1413"></a> bool in_list_box = <a href="qlistboxitem.html#listBox">listBox</a>() && listBox()->viewport() == painter-><a href="ntqpainter.html#device">device</a>(); +<a name="x1413"></a> bool in_list_box = <a href="qlistboxitem.html#listBox">listBox</a>() && listBox()->viewport() == painter-><a href="tqpainter.html#device">device</a>(); <a href="ntqrect.html">TQRect</a> r ( 0, 0, width( <a href="qlistboxitem.html#listBox">listBox</a>() ), height( <a href="qlistboxitem.html#listBox">listBox</a>() ) ); if ( in_list_box && isSelected() ) -<a name="x1414"></a> painter-><a href="ntqpainter.html#eraseRect">eraseRect</a>( r ); -<a name="x1415"></a> painter-><a href="ntqpainter.html#fillRect">fillRect</a>( 5, 5, width( listBox() ) - 10, height( listBox() ) - 10, TQt::red ); +<a name="x1414"></a> painter-><a href="tqpainter.html#eraseRect">eraseRect</a>( r ); +<a name="x1415"></a> painter-><a href="tqpainter.html#fillRect">fillRect</a>( 5, 5, width( listBox() ) - 10, height( listBox() ) - 10, TQt::red ); if ( in_list_box && isCurrent() ) listBox()->style().drawPrimitive( TQStyle::PE_FocusRect, painter, r, listBox()->colorGroup() ); } |