diff options
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() ); } |