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/menu-example.html | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'doc/html/menu-example.html') diff --git a/doc/html/menu-example.html b/doc/html/menu-example.html index ec62caf59..a0d41e285 100644 --- a/doc/html/menu-example.html +++ b/doc/html/menu-example.html @@ -118,7 +118,7 @@ private: #include <ntqapplication.h> #include <ntqmessagebox.h> #include <ntqpixmap.h> -#include <ntqpainter.h> +#include <tqpainter.h> /* XPM */ static const char * p1_xpm[] = { @@ -198,14 +198,14 @@ static const char * p3_xpm[] = { class MyMenuItem : public TQCustomMenuItem { public: - MyMenuItem( const TQString& s, const TQFont& f ) + MyMenuItem( const TQString& s, const TQFont& f ) : string( s ), font( f ){}; ~MyMenuItem(){} - void paint( TQPainter* p, const TQColorGroup& /*cg*/, bool /*act*/, bool /*enabled*/, int x, int y, int w, int h ) + void paint( TQPainter* p, const TQColorGroup& /*cg*/, bool /*act*/, bool /*enabled*/, int x, int y, int w, int h ) { - p->setFont ( font ); - p->drawText( x, y, w, h, AlignLeft | AlignVCenter | DontClip | ShowPrefix, string ); + p->setFont ( font ); + p->drawText( x, y, w, h, AlignLeft | AlignVCenter | DontClip | ShowPrefix, string ); } TQSize sizeHint() @@ -214,7 +214,7 @@ public: } private: TQString string; - TQFont font; + TQFont font; }; @@ -259,13 +259,13 @@ private: options->insertSeparator(); options->polish(); // adjust system settings - TQFont f = options->font(); - f.setBold( TRUE ); + TQFont f = options->font(); + f.setBold( TRUE ); boldID = options->insertItem( new MyMenuItem( "Bold", f ) ); options->setAccel( CTRL+Key_B, boldID ); options->connectItem( boldID, this, TQ_SLOT(bold()) ); f = font(); - f.setUnderline( TRUE ); + f.setUnderline( TRUE ); underlineID = options->insertItem( new MyMenuItem( "Underline", f ) ); options->setAccel( CTRL+Key_U, underlineID ); options->connectItem( underlineID, this, TQ_SLOT(underline()) ); @@ -375,7 +375,7 @@ void MenuExample::normal() { isBold = FALSE; isUnderline = FALSE; - TQFont font; + TQFont font; label->setFont( font ); menu->setItemChecked( boldID, isBold ); menu->setItemChecked( underlineID, isUnderline ); @@ -386,9 +386,9 @@ void MenuExample::normal() void MenuExample::bold() { isBold = !isBold; - TQFont font; - font.setBold( isBold ); - font.setUnderline( isUnderline ); + TQFont font; + font.setBold( isBold ); + font.setUnderline( isUnderline ); label->setFont( font ); menu->setItemChecked( boldID, isBold ); emit explain( "Options/Bold selected" ); @@ -398,9 +398,9 @@ void MenuExample::bold() void MenuExample::underline() { isUnderline = !isUnderline; - TQFont font; - font.setBold( isBold ); - font.setUnderline( isUnderline ); + TQFont font; + font.setBold( isBold ); + font.setUnderline( isUnderline ); label->setFont( font ); menu->setItemChecked( underlineID, isUnderline ); emit explain( "Options/Underline selected" ); -- cgit v1.2.3