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 --- examples/demo/textdrawing/example.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'examples/demo/textdrawing/example.html') diff --git a/examples/demo/textdrawing/example.html b/examples/demo/textdrawing/example.html index a4fe80929..fc48cca7b 100644 --- a/examples/demo/textdrawing/example.html +++ b/examples/demo/textdrawing/example.html @@ -96,14 +96,14 @@ corner (both lines being flush with the right side of the label): widget. For this use, TQLabel provides a handy mechanism for adding an accelerator key (see TQAccel) that will set the keyboard focus to the other widget (called the TQLabel's "buddy"). Example: -

     TQLineEdit* phoneEdit = new TQLineEdit( this, "phoneEdit" );
+

     TQLineEdit* phoneEdit = new TQLineEdit( this, "phoneEdit" );
      TQLabel* phoneLabel = new TQLabel( phoneEdit, "&Phone:", this, "phoneLabel" );
 

In this example, keyboard focus is transferred to the label's buddy -(the TQLineEdit) when the user presses Alt-P. You can also +(the TQLineEdit) when the user presses Alt-P. You can also use the setBuddy() function to accomplish the same.

-

See also TQLineEdit, TQTextView, TQPixmap, TQMovie and GUI Design Handbook: Label +

See also TQLineEdit, TQTextView, TQPixmap, TQMovie and GUI Design Handbook: Label

Examples: cursor/cursor.cpp layout/layout.cpp @@ -223,10 +223,10 @@ alignment flag is turned on; see setAlignment()).

In a dialog, you might create two data entry widgets and a label for each, and set up the geometry layout so each label is just to the left of its data entry widget (its "buddy"), somewhat like this: -

    TQLineEdit *nameEd  = new TQLineEdit( this );
+

    TQLineEdit *nameEd  = new TQLineEdit( this );
     TQLabel    *nameLb  = new TQLabel( "&Name:", this );
     nameLb->setBuddy( nameEd );
-    TQLineEdit *phoneEd = new TQLineEdit( this );
+    TQLineEdit *phoneEd = new TQLineEdit( this );
     TQLabel    *phoneLb = new TQLabel( "&Phone:", this );
     phoneLb->setBuddy( phoneEd );
     // ( layout setup not shown )
-- 
cgit v1.2.3