From 0e787fb7f5b56b4fe87cd8ada64ae740bbca87bc Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 24 Jul 2024 19:37:05 +0900 Subject: Rename text class nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- examples/demo/dnd/styledbutton.cpp | 2 +- examples/demo/graph.cpp | 2 +- examples/demo/i18n/i18n.cpp | 2 +- examples/demo/qasteroids/toplevel.cpp | 2 +- examples/demo/textdrawing/example.html | 14 +++++++------- examples/demo/textdrawing/helpwindow.cpp | 2 +- examples/demo/textdrawing/textedit.cpp | 2 +- 7 files changed, 13 insertions(+), 13 deletions(-) (limited to 'examples/demo') diff --git a/examples/demo/dnd/styledbutton.cpp b/examples/demo/dnd/styledbutton.cpp index 51e8968cf..ee393a106 100644 --- a/examples/demo/dnd/styledbutton.cpp +++ b/examples/demo/dnd/styledbutton.cpp @@ -35,7 +35,7 @@ #include #include -#include +#include #include #include #include diff --git a/examples/demo/graph.cpp b/examples/demo/graph.cpp index 07222f898..26b203455 100644 --- a/examples/demo/graph.cpp +++ b/examples/demo/graph.cpp @@ -5,7 +5,7 @@ #include #include #include -#include +#include #include const int bounce_rtti = 1234; diff --git a/examples/demo/i18n/i18n.cpp b/examples/demo/i18n/i18n.cpp index 1986189a8..8e40398d4 100644 --- a/examples/demo/i18n/i18n.cpp +++ b/examples/demo/i18n/i18n.cpp @@ -14,7 +14,7 @@ #include #include #include -#include +#include #include diff --git a/examples/demo/qasteroids/toplevel.cpp b/examples/demo/qasteroids/toplevel.cpp index c2a22ea14..d40ea72a6 100644 --- a/examples/demo/qasteroids/toplevel.cpp +++ b/examples/demo/qasteroids/toplevel.cpp @@ -5,7 +5,7 @@ */ // --- toplevel.cpp --- #include -#include +#include #include #include #include diff --git a/examples/demo/textdrawing/example.html b/examples/demo/textdrawing/example.html index 12d21ff72..a4fe80929 100644 --- a/examples/demo/textdrawing/example.html +++ b/examples/demo/textdrawing/example.html @@ -11,10 +11,10 @@ a:visited { color: #672967; text-decoration: none }body { background: white; col The TQLabel widget provides a static information display More...

-#include <ntqlabel.h> +#include <tqlabel.h>

Inherits TQFrame. -

List of all member functions. +

List of all member functions.

Public Members

  • TQLabel ( TQWidget * parent, const char * name=0, WFlags f=0 ) 
    @@ -87,7 +87,7 @@ positioning of the content within the TQLabel widget area can be tuned with setAlignment() and setIndent(). For example, this code sets up a sunken panel with a two-line text in the bottom right corner (both lines being flush with the right side of the label): -

        TQLabel *label = new TQLabel;
    +

        TQLabel *label = new TQLabel;
         label->setFrameStyle( TQFrame::Panel | TQFrame::Sunken );
         label->setText( "first line\nsecond line" );
         label->setAlignment( AlignBottom | AlignRight );
    @@ -97,7 +97,7 @@ 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" );
    -     TQLabel* phoneLabel = new TQLabel( phoneEdit, "&Phone:", this, "phoneLabel" );
    +     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 @@ -224,10 +224,10 @@ alignment flag is turned on; see setAlignment()). 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 );
    -    TQLabel    *nameLb  = new TQLabel( "&Name:", this );
    +    TQLabel    *nameLb  = new TQLabel( "&Name:", this );
         nameLb->setBuddy( nameEd );
         TQLineEdit *phoneEd = new TQLineEdit( this );
    -    TQLabel    *phoneLb = new TQLabel( "&Phone:", this );
    +    TQLabel    *phoneLb = new TQLabel( "&Phone:", this );
         phoneLb->setBuddy( phoneEd );
         // ( layout setup not shown )
     
    @@ -293,7 +293,7 @@ the format of text.

    If text is interpreted as a plain text, and a buddy has been set, the buddy accelerator key is updated from the new text.

    The label resizes itself if auto-resizing is enabled. -

    Note that Qlabel is well suited to display small rich text documents +

    Note that TQLabel is well suited to display small rich text documents only. For large documents, use TQTextView instead. It will flicker less on resize and can also provide a scrollbar if necessary.

    See also text(), setTextFormat(), setBuddy() and setAlignment(). diff --git a/examples/demo/textdrawing/helpwindow.cpp b/examples/demo/textdrawing/helpwindow.cpp index 90ed211d4..6859d57e7 100644 --- a/examples/demo/textdrawing/helpwindow.cpp +++ b/examples/demo/textdrawing/helpwindow.cpp @@ -29,7 +29,7 @@ #include #include #include -#include +#include #include #include diff --git a/examples/demo/textdrawing/textedit.cpp b/examples/demo/textdrawing/textedit.cpp index 66e7e8b11..f2017762f 100644 --- a/examples/demo/textdrawing/textedit.cpp +++ b/examples/demo/textdrawing/textedit.cpp @@ -24,7 +24,7 @@ #include #include #include -#include +#include #include #include -- cgit v1.2.3