From fef846914f8db6dc117e206ef913d519bf6bb33e Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 29 Jul 2024 12:43:23 +0900 Subject: Rename basic widget nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/popup-example.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'doc/html/popup-example.html') diff --git a/doc/html/popup-example.html b/doc/html/popup-example.html index 7d7c14d32..0a676a704 100644 --- a/doc/html/popup-example.html +++ b/doc/html/popup-example.html @@ -54,8 +54,8 @@ pop up. #ifndef POPUP_H #define POPUP_H #include <tqlabel.h> -#include <ntqpushbutton.h> -#include <ntqlineedit.h> +#include <tqpushbutton.h> +#include <tqlineedit.h> class FancyPopup : public TQLabel { @@ -88,8 +88,8 @@ private: void button2Pressed(); private: - TQPushButton *button1; - TQPushButton *button2; + TQPushButton *button1; + TQPushButton *button2; TQFrame* popup1; FancyPopup* popup2; @@ -166,9 +166,9 @@ void FancyPopup::popup( TQWidget* Frame::Frame(TQWidget* parent, const char* name): TQFrame(parent, name){ - button1 = new TQPushButton("Simple Popup", this); + button1 = new TQPushButton("Simple Popup", this); connect ( button1, TQ_SIGNAL( clicked() ), TQ_SLOT( button1Clicked() ) ); - button2 = new TQPushButton("Fancy Popup", this); + button2 = new TQPushButton("Fancy Popup", this); connect ( button2, TQ_SIGNAL( pressed() ), TQ_SLOT( button2Pressed() ) ); TQBoxLayout * l = new TQHBoxLayout( this ); @@ -188,11 +188,11 @@ void FancyPopup::popup( TQWidget* popup1 = new TQFrame( this ,0, WType_Popup); popup1->setFrameStyle( WinPanel|Raised ); popup1->resize(150,100); - TQLineEdit *tmpE = new TQLineEdit( popup1 ); - connect( tmpE, TQ_SIGNAL( returnPressed() ), popup1, TQ_SLOT( hide() ) ); + TQLineEdit *tmpE = new TQLineEdit( popup1 ); + connect( tmpE, TQ_SIGNAL( returnPressed() ), popup1, TQ_SLOT( hide() ) ); tmpE->setGeometry(10,10, 130, 30); tmpE->setFocus(); - TQPushButton *tmpB = new TQPushButton("Click me!", popup1); + TQPushButton *tmpB = new TQPushButton("Click me!", popup1); connect( tmpB, TQ_SIGNAL( clicked() ), popup1, TQ_SLOT( close() ) ); tmpB->setGeometry(10, 50, 130, 30); @@ -206,9 +206,9 @@ void FancyPopup::popup( TQWidget* // it with any other widget. The next four lines (if not // commented out) will for instance add a line edit widget. -// tmpE = new TQLineEdit( popup2 ); +// tmpE = new TQLineEdit( popup2 ); // tmpE->setFocus(); -// connect( tmpE, TQ_SIGNAL( returnPressed() ), popup2, TQ_SLOT( close() ) ); +// connect( tmpE, TQ_SIGNAL( returnPressed() ), popup2, TQ_SLOT( close() ) ); // tmpE->setGeometry(10, 10, 130, 30); } -- cgit v1.2.3