From 6f57abfc9cd3acf1d648aee696947ac9216adb71 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 9 Sep 2024 14:57:42 +0900 Subject: Rename remaining ntq[s-z]* related files to equivalent tq* Signed-off-by: Michele Calgaro --- examples/README | 4 +- examples/demo/textdrawing/example.html | 8 ++-- examples/examples.pro | 2 +- examples/fileiconview/mainwindow.cpp | 2 +- examples/iconview/simple_dd/main.h | 2 +- examples/listviews/listviews.h | 2 +- examples/network/remotecontrol/ipcserver.cpp | 2 +- examples/qtl/qtl-qvaluelist.doc | 19 ---------- examples/qtl/qtl.pro | 7 ---- examples/qtl/tqvaluelistiterator.cpp | 57 ---------------------------- examples/sound/sound.h | 2 +- examples/splitter/splitter.cpp | 2 +- examples/tqtl/tqtl-tqvaluelist.doc | 19 ++++++++++ examples/tqtl/tqtl.pro | 7 ++++ examples/tqtl/tqvaluelistiterator.cpp | 57 ++++++++++++++++++++++++++++ examples/widgets/widgets.cpp | 2 +- examples/xml/tagreader/tagreader.cpp | 2 +- 17 files changed, 98 insertions(+), 98 deletions(-) delete mode 100644 examples/qtl/qtl-qvaluelist.doc delete mode 100644 examples/qtl/qtl.pro delete mode 100644 examples/qtl/tqvaluelistiterator.cpp create mode 100644 examples/tqtl/tqtl-tqvaluelist.doc create mode 100644 examples/tqtl/tqtl.pro create mode 100644 examples/tqtl/tqvaluelistiterator.cpp (limited to 'examples') diff --git a/examples/README b/examples/README index a32df67c..8003540b 100644 --- a/examples/README +++ b/examples/README @@ -314,10 +314,10 @@ showimg sound Shows how to play sounds from a TQt application (and how to see if - sound is supported) using QSound. + sound is supported) using TQSound. splitter - This example shows how to use QSplitter to give the user control + This example shows how to use TQSplitter to give the user control over how much vertical or horizontal space is given to child widgets. diff --git a/examples/demo/textdrawing/example.html b/examples/demo/textdrawing/example.html index 12c6f5e7..331b469b 100644 --- a/examples/demo/textdrawing/example.html +++ b/examples/demo/textdrawing/example.html @@ -184,7 +184,7 @@ returns 0.

Reimplemented from TQWidget.

void TQLabel::setAlignment ( int alignment ) [virtual]

Sets the alignment of the label contents. -

The alignment must be a bitwise OR of TQt::AlignmentFlags +

The alignment must be a bitwise OR of TQt::AlignmentFlags values. The WordBreak, ExpandTabs, SingleLine and ShowPrefix flags apply only if the label contains a plain text, and are otherwise ignored. The DontClip flag is always ignored.

If the label has a buddy, the ShowPrefix flag is forced to TRUE. @@ -192,7 +192,7 @@ are otherwise ignored. The DontClip flag is always ignored. ExpandTabs if the label doesn't have a buddy and AlignLeft | AlignVCenter | ExpandTabs | ShowPrefix if the label has a buddy. -

See also TQt::AlignmentFlags, alignment(), setBuddy() and setText(). +

See also TQt::AlignmentFlags, alignment(), setBuddy() and setText().

Examples: cursor/cursor.cpp layout/layout.cpp @@ -303,8 +303,8 @@ less on resize and can also provide a scrollbar if necessary. popup/popup.cpp qmag/qmag.cpp customlayout/main.cpp -

void TQLabel::setTextFormat ( TQt::TextFormat format )

-

Sets the text format to format. See the TQt::TextFormat enum for +

void TQLabel::setTextFormat ( TQt::TextFormat format )

+

Sets the text format to format. See the TQt::TextFormat enum for an explanation of the possible options.

The default format is AutoText.

See also textFormat() and setText(). diff --git a/examples/examples.pro b/examples/examples.pro index 7a1da469..aed7c92c 100644 --- a/examples/examples.pro +++ b/examples/examples.pro @@ -42,7 +42,7 @@ SUBDIRS = aclock \ tqdir \ qfd \ qmag \ - qtl \ + tqtl \ qwerty \ rangecontrols \ richtext \ diff --git a/examples/fileiconview/mainwindow.cpp b/examples/fileiconview/mainwindow.cpp index 6e9d70aa..a559c9fb 100644 --- a/examples/fileiconview/mainwindow.cpp +++ b/examples/fileiconview/mainwindow.cpp @@ -11,7 +11,7 @@ #include "tqfileiconview.h" #include "../dirview/dirview.h" -#include +#include #include #include #include diff --git a/examples/iconview/simple_dd/main.h b/examples/iconview/simple_dd/main.h index 4640e90e..032da5eb 100644 --- a/examples/iconview/simple_dd/main.h +++ b/examples/iconview/simple_dd/main.h @@ -9,7 +9,7 @@ #include #include -#include +#include #include #include #include diff --git a/examples/listviews/listviews.h b/examples/listviews/listviews.h index b4c8ecaf..51084522 100644 --- a/examples/listviews/listviews.h +++ b/examples/listviews/listviews.h @@ -10,7 +10,7 @@ #ifndef LISTVIEWS_H #define LISTVIEWS_H -#include +#include #include #include #include diff --git a/examples/network/remotecontrol/ipcserver.cpp b/examples/network/remotecontrol/ipcserver.cpp index a850bfa5..80c340b8 100644 --- a/examples/network/remotecontrol/ipcserver.cpp +++ b/examples/network/remotecontrol/ipcserver.cpp @@ -1,7 +1,7 @@ #include "ipcserver.h" #include -#include +#include #include #include #include diff --git a/examples/qtl/qtl-qvaluelist.doc b/examples/qtl/qtl-qvaluelist.doc deleted file mode 100644 index 66372412..00000000 --- a/examples/qtl/qtl-qvaluelist.doc +++ /dev/null @@ -1,19 +0,0 @@ -/*! \page qtl-tqvaluelist-example.html - - \ingroup examples - \title A Tiny QTL Example - -This tiny example shows a \l{TQValueListIterator}. - -


- - Implementation: - - \include qtl/tqvaluelistiterator.cpp - - -*/ - - - - diff --git a/examples/qtl/qtl.pro b/examples/qtl/qtl.pro deleted file mode 100644 index 151acc19..00000000 --- a/examples/qtl/qtl.pro +++ /dev/null @@ -1,7 +0,0 @@ -TEMPLATE = app -TARGET = qtl - -CONFIG += qt console warn_on release - -SOURCES = tqvaluelistiterator.cpp -INTERFACES = diff --git a/examples/qtl/tqvaluelistiterator.cpp b/examples/qtl/tqvaluelistiterator.cpp deleted file mode 100644 index e477e031..00000000 --- a/examples/qtl/tqvaluelistiterator.cpp +++ /dev/null @@ -1,57 +0,0 @@ -/**************************************************************************** -** -** Copyright (C) 1992-2008 Trolltech ASA. All rights reserved. -** -** This file is part of an example program for TQt. This example -** program may be used, distributed and modified without limitation. -** -*****************************************************************************/ - -#include -#include -#include -#include - - -class Employee -{ -public: - Employee(): s(0) {} - Employee( const TQString& name, int salary ) - : n(name), s(salary) {} - - TQString name() const { return n; } - - int salary() const { return s; } - void setSalary( int salary ) { s = salary; } - - // this is here to support very old compilers - TQ_DUMMY_COMPARISON_OPERATOR( Employee ) - -private: - TQString n; - int s; -}; - - -int main( int, char** ) -{ - typedef TQValueList EmployeeList; - EmployeeList list; - - list.append( Employee("Bill", 50000) ); - list.append( Employee("Steve",80000) ); - list.append( Employee("Ron", 60000) ); - - Employee joe( "Joe", 50000 ); - list.append( joe ); - joe.setSalary( 4000 ); - - EmployeeList::ConstIterator it = list.begin(); - while( it != list.end() ) { - printf( "%s earns %d\n", (*it).name().latin1(), (*it).salary() ); - ++it; - } - - return 0; -} diff --git a/examples/sound/sound.h b/examples/sound/sound.h index 416927b2..6a5541c7 100644 --- a/examples/sound/sound.h +++ b/examples/sound/sound.h @@ -9,7 +9,7 @@ #ifndef PLAY_H #define PLAY_H -#include "ntqsound.h" +#include "tqsound.h" #include class SoundPlayer : public TQMainWindow { diff --git a/examples/splitter/splitter.cpp b/examples/splitter/splitter.cpp index e5c1fed8..cb43f1c0 100644 --- a/examples/splitter/splitter.cpp +++ b/examples/splitter/splitter.cpp @@ -9,7 +9,7 @@ #include #include -#include +#include #include #include diff --git a/examples/tqtl/tqtl-tqvaluelist.doc b/examples/tqtl/tqtl-tqvaluelist.doc new file mode 100644 index 00000000..06ba88dd --- /dev/null +++ b/examples/tqtl/tqtl-tqvaluelist.doc @@ -0,0 +1,19 @@ +/*! \page tqtl-tqvaluelist-example.html + + \ingroup examples + \title A Tiny TQTL Example + +This tiny example shows a \l{TQValueListIterator}. + +
+ + Implementation: + + \include tqtl/tqvaluelistiterator.cpp + + +*/ + + + + diff --git a/examples/tqtl/tqtl.pro b/examples/tqtl/tqtl.pro new file mode 100644 index 00000000..c909434d --- /dev/null +++ b/examples/tqtl/tqtl.pro @@ -0,0 +1,7 @@ +TEMPLATE = app +TARGET = tqtl + +CONFIG += qt console warn_on release + +SOURCES = tqvaluelistiterator.cpp +INTERFACES = diff --git a/examples/tqtl/tqvaluelistiterator.cpp b/examples/tqtl/tqvaluelistiterator.cpp new file mode 100644 index 00000000..cfb87c31 --- /dev/null +++ b/examples/tqtl/tqvaluelistiterator.cpp @@ -0,0 +1,57 @@ +/**************************************************************************** +** +** Copyright (C) 1992-2008 Trolltech ASA. All rights reserved. +** +** This file is part of an example program for TQt. This example +** program may be used, distributed and modified without limitation. +** +*****************************************************************************/ + +#include +#include +#include +#include + + +class Employee +{ +public: + Employee(): s(0) {} + Employee( const TQString& name, int salary ) + : n(name), s(salary) {} + + TQString name() const { return n; } + + int salary() const { return s; } + void setSalary( int salary ) { s = salary; } + + // this is here to support very old compilers + TQ_DUMMY_COMPARISON_OPERATOR( Employee ) + +private: + TQString n; + int s; +}; + + +int main( int, char** ) +{ + typedef TQValueList EmployeeList; + EmployeeList list; + + list.append( Employee("Bill", 50000) ); + list.append( Employee("Steve",80000) ); + list.append( Employee("Ron", 60000) ); + + Employee joe( "Joe", 50000 ); + list.append( joe ); + joe.setSalary( 4000 ); + + EmployeeList::ConstIterator it = list.begin(); + while( it != list.end() ) { + printf( "%s earns %d\n", (*it).name().latin1(), (*it).salary() ); + ++it; + } + + return 0; +} diff --git a/examples/widgets/widgets.cpp b/examples/widgets/widgets.cpp index 4ce159fa..9ceabd8b 100644 --- a/examples/widgets/widgets.cpp +++ b/examples/widgets/widgets.cpp @@ -40,7 +40,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/examples/xml/tagreader/tagreader.cpp b/examples/xml/tagreader/tagreader.cpp index 42d795c7..4abbf73d 100644 --- a/examples/xml/tagreader/tagreader.cpp +++ b/examples/xml/tagreader/tagreader.cpp @@ -10,7 +10,7 @@ #include "structureparser.h" #include #include -#include +#include int main( int argc, char **argv ) { -- cgit v1.2.1