From a30f5359f03c3017fa19a6770fab32d25d22cb87 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 15 Jul 2024 19:08:22 +0900 Subject: Rename graphics class nt* related files to equivalent tq* (part 1) Signed-off-by: Michele Calgaro --- doc/html/listboxcombo-example.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'doc/html/listboxcombo-example.html') 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 <ntqpixmap.h> #include <ntqlabel.h> #include <tqimage.h> -#include <ntqpainter.h> +#include <tqpainter.h> #include <tqstyle.h> @@ -112,21 +112,21 @@ public: } protected: - virtual void paint( TQPainter * ); + virtual void paint( TQPainter * ); virtual int width( const TQListBox* ) const { return 100; } virtual int height( const TQListBox* ) const { return 16; } }; -void MyListBoxItem::paint( TQPainter *painter ) +void MyListBoxItem::paint( TQPainter *painter ) { // evil trick: find out whether we are painted onto our listbox - bool in_list_box = listBox() && listBox()->viewport() == painter->device(); + bool in_list_box = listBox() && listBox()->viewport() == painter->device(); TQRect r ( 0, 0, width( listBox() ), height( listBox() ) ); if ( in_list_box && isSelected() ) - painter->eraseRect( r ); - painter->fillRect( 5, 5, width( listBox() ) - 10, height( listBox() ) - 10, TQt::red ); + painter->eraseRect( r ); + painter->fillRect( 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() ); } -- cgit v1.2.3