diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-09-23 12:42:20 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-09-23 12:42:20 +0900 |
commit | b35e0845dc9b3c8b9a5e52a682c769f383933fae (patch) | |
tree | e4eeca8f6fe0ca87e774be98eabf89b4c7fca347 /examples | |
parent | 1ba13366a7a377d50b9e8df9044ce11d8209f98c (diff) | |
download | tqt3-b35e0845dc9b3c8b9a5e52a682c769f383933fae.tar.gz tqt3-b35e0845dc9b3c8b9a5e52a682c769f383933fae.zip |
Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/README | 6 | ||||
-rw-r--r-- | examples/demo/textdrawing/example.html | 10 | ||||
-rw-r--r-- | examples/extension/extension.doc | 2 | ||||
-rw-r--r-- | examples/helpsystem/helpsystem.doc | 16 | ||||
-rw-r--r-- | examples/opengl/overlay_x11/README.X11-OVERLAYS | 2 | ||||
-rw-r--r-- | examples/toplevel/toplevel.doc | 6 |
6 files changed, 21 insertions, 21 deletions
diff --git a/examples/README b/examples/README index 0e41e1b8a..bcd6e34e3 100644 --- a/examples/README +++ b/examples/README @@ -12,7 +12,7 @@ them assume they are run from there. aclock This example displays an analog clock widget. - It shows how to create a custom widget (QWidget subclass) and how + It shows how to create a custom widget (TQWidget subclass) and how to create a timer using QTimer. action @@ -98,7 +98,7 @@ dragdrop drawdemo Draws a color wheel, text and shapes. This example demonstrates several drawing functions and printer output using QPainter, - QWMatrix, QFont, QFontMetrics, QColor, QBrush, and QPrinter. You + QWMatrix, QFont, QFontMetrics, TQColor, QBrush, and QPrinter. You can easily add you own drawing functions. See "ourDrawFunctions". drawlines @@ -307,7 +307,7 @@ scribble An implementation of the well known scribble program. You can draw with different pen colors and widths and save the result as a pixmap in various formats. It shows how to do drawing using a - QWidget subclass (rather than a QCanvas for example). It also + TQWidget subclass (rather than a QCanvas for example). It also shows how to add a QSpinBox to a QToolBar and how to implement a button that pops up a menu (using QPushButton and QPopupMenu), and also how to use the QColorDialog. diff --git a/examples/demo/textdrawing/example.html b/examples/demo/textdrawing/example.html index 5a765ecac..eca9d9210 100644 --- a/examples/demo/textdrawing/example.html +++ b/examples/demo/textdrawing/example.html @@ -17,9 +17,9 @@ Inherits <a href="ntqframe.html">TQFrame</a>. <p><a href="qlabel-members.html">List of all member functions.</a> <h2>Public Members</h2> <ul> -<li><div class="fn"><a href="#39107d"><b>TQLabel</b></a> ( QWidget * parent, const char * name=0, WFlags f=0 ) </div> -<li><div class="fn"><a href="#2bafbb"><b>TQLabel</b></a> ( const QString & text, TQWidget * parent, const char * name=0, WFlags f=0 ) </div> -<li><div class="fn"><a href="#5514c7"><b>TQLabel</b></a> ( QWidget * buddy, const QString &, TQWidget * parent, const char * name=0, WFlags f=0 ) </div> +<li><div class="fn"><a href="#39107d"><b>TQLabel</b></a> ( TQWidget * parent, const char * name=0, WFlags f=0 ) </div> +<li><div class="fn"><a href="#2bafbb"><b>TQLabel</b></a> ( const TQString & text, TQWidget * parent, const char * name=0, WFlags f=0 ) </div> +<li><div class="fn"><a href="#5514c7"><b>TQLabel</b></a> ( TQWidget * buddy, const TQString &, TQWidget * parent, const char * name=0, WFlags f=0 ) </div> <li><div class="fn"><a href="#9958af"><b>~TQLabel</b></a> () </div> <li><div class="fn">TQString <a href="#72cf09"><b>text</b></a> () const</div> <li><div class="fn">TQPixmap* <a href="#101ecb"><b>pixmap</b></a> () const</div> @@ -34,12 +34,12 @@ Inherits <a href="ntqframe.html">TQFrame</a>. <li><div class="fn">virtual void setAutoResize ( bool ) <em>(obsolete)</em></div> <li><div class="fn">bool <a href="#7e1f73"><b>hasScaledContents</b></a> () const</div> <li><div class="fn">void <a href="#e9e3cf"><b>setScaledContents</b></a> ( bool ) </div> -<li><div class="fn">virtual void <a href="#191701"><b>setBuddy</b></a> ( QWidget * ) </div> +<li><div class="fn">virtual void <a href="#191701"><b>setBuddy</b></a> ( TQWidget * ) </div> <li><div class="fn">TQWidget* <a href="#123954"><b>buddy</b></a> () const</div> </ul> <h2>Public Slots</h2> <ul> -<li><div class="fn">virtual void <a href="#dffb43"><b>setText</b></a> ( const QString & ) </div> +<li><div class="fn">virtual void <a href="#dffb43"><b>setText</b></a> ( const TQString & ) </div> <li><div class="fn">virtual void <a href="#f3f301"><b>setPixmap</b></a> ( const QPixmap & ) </div> <li><div class="fn">virtual void <a href="#60de9f"><b>setMovie</b></a> ( const QMovie & ) </div> <li><div class="fn">virtual void <a href="#301e3c"><b>setNum</b></a> ( int ) </div> diff --git a/examples/extension/extension.doc b/examples/extension/extension.doc index 98b4a3373..c1f0130b3 100644 --- a/examples/extension/extension.doc +++ b/examples/extension/extension.doc @@ -9,7 +9,7 @@ This example demonstrates how to create an extension dialog. Essentially all that is necessary is to create a standard dialog - and then create a QWidget form to be used as the extension. See + and then create a TQWidget form to be used as the extension. See the article in \link http://doc.trolltech.com/qq/ Qt Quarterly\endlink issue #3. diff --git a/examples/helpsystem/helpsystem.doc b/examples/helpsystem/helpsystem.doc index 493491151..e9e647e6c 100644 --- a/examples/helpsystem/helpsystem.doc +++ b/examples/helpsystem/helpsystem.doc @@ -25,7 +25,7 @@ QHeader and QTable by reimplementing maybeTip(). The constructors differ from the QToolTip constructor in having a QHeader and a QTable respectively as the first parameter for - the constructor instead of a QWidget. This is because + the constructor instead of a TQWidget. This is because we want to ensure that only headers and tables can be passed as arguments. A QToolTipGroup can be provided as the second argument to show tooltips in, for example a statusbar. @@ -76,9 +76,9 @@ \skipto WhatsThis::WhatsThis - The WhatsThis class is a subclass of both QObject and + The WhatsThis class is a subclass of both TQObject and QWhatsThis and serves as a base class for the HeaderWhatsThis - and TableWhatsThis classes. \footnote Note that moc requires that QObject + and TableWhatsThis classes. \footnote Note that moc requires that TQObject is the first base class. \endfootnote WhatsThis reimplements clicked() which will be called when the user clicks inside the "What's this?" window. It also declares a signal @@ -91,8 +91,8 @@ but some widgets, like QTable, are more complex and have a viewport() widget which receives the events. If such a widget is passed to the constructor it will propagate the parameter to - the QWhatsThis constructor and store the QWidget pointer itself - in it's member variable to allow easier use of the QWidget API + the QWhatsThis constructor and store the TQWidget pointer itself + in it's member variable to allow easier use of the TQWidget API later on. \skipto bool WhatsThis::clicked \printuntil } @@ -124,7 +124,7 @@ a string which states the header's orientation and section. \footnote Note that we have to explicitly scope the orientation - (QObject or QWhatsThis) since HeaderWhatsThis uses multiple + (TQObject or QWhatsThis) since HeaderWhatsThis uses multiple inheritance. \endfootnote \printuntil } @@ -163,7 +163,7 @@ \printuntil assistant The MainWindow constructor creates an instance of - QAssistantClient using QString::null as the first argument + QAssistantClient using TQString::null as the first argument so that the system path is used. \printto QWhatsThis::whatsThisButton @@ -201,7 +201,7 @@ The destructor deletes the tooltips. We need to delete the tooltips explicitly since QToolTip is, as mentioned above, not - a subclass of QObject and the instances of QToolTip not will be + a subclass of TQObject and the instances of QToolTip not will be deleted when the widget is deleted. \printuntil } diff --git a/examples/opengl/overlay_x11/README.X11-OVERLAYS b/examples/opengl/overlay_x11/README.X11-OVERLAYS index b951b0edf..4e7a9b647 100644 --- a/examples/opengl/overlay_x11/README.X11-OVERLAYS +++ b/examples/opengl/overlay_x11/README.X11-OVERLAYS @@ -55,7 +55,7 @@ An overlay plane has a specific color called the transparent color. Pixels drawn in this color will not be visible, instead the underlying OpenGL image will show through. In the example program "overlayrubber", the file main.cpp contains a routine that returns a -QColor containing the transparent color. For the overlay widget, one +TQColor containing the transparent color. For the overlay widget, one will typically want to set the background color to the transparent color, so that the OpenGL image shows through except where explicitly overpainted. diff --git a/examples/toplevel/toplevel.doc b/examples/toplevel/toplevel.doc index fdfa5e4e3..1487f74b4 100644 --- a/examples/toplevel/toplevel.doc +++ b/examples/toplevel/toplevel.doc @@ -9,8 +9,8 @@ It provides a graphical user interface for selecting different options for widget decoration and behavior, and passes the - appropriate widget flags to the QWidget constructor. - QWidget::reparent() is used to change the widget flags at runtime. + appropriate widget flags to the TQWidget constructor. + TQWidget::reparent() is used to change the widget flags at runtime. \warning Note that the interpretation and functionality of the widget flags depends on the window manager used when running the @@ -55,7 +55,7 @@ A titlebar with controls is provided if the appropriate options have been checked. - \printto QWidget *parent + \printto TQWidget *parent If the window should not have a border it cannot have a titlebar. Widgets that provide their own (e.g. themed) window decoration should use this flag. |