summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqprogressdialog.3qt
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-06-27 21:53:17 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-06-29 13:21:04 +0900
commit2cbcca0db1343e1c40e52af729a5eb34ca8a7e37 (patch)
tree065c9e97d5bd9eb3d9869427b44acdd571ba0cc1 /doc/man/man3/tqprogressdialog.3qt
parenta09a6bc05e3f64c27e7c84dd768c7720fdf41136 (diff)
downloadtqt-2cbcca0db1343e1c40e52af729a5eb34ca8a7e37.tar.gz
tqt-2cbcca0db1343e1c40e52af729a5eb34ca8a7e37.zip
Rename date and time nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/man/man3/tqprogressdialog.3qt')
-rw-r--r--doc/man/man3/tqprogressdialog.3qt4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/man/man3/tqprogressdialog.3qt b/doc/man/man3/tqprogressdialog.3qt
index 0b8e9f2e2..42deb5a79 100644
--- a/doc/man/man3/tqprogressdialog.3qt
+++ b/doc/man/man3/tqprogressdialog.3qt
@@ -175,7 +175,7 @@ for ( int i = 0; i < numFiles; i++ ) {
progress.setProgress( numFiles );
.fi
.PP
-A modeless progress dialog is suitable for operations that take place in the background, where the user is able to interact with the application. Such operations are typically based on QTimer (or TQObject::timerEvent()), QSocketNotifier, or QUrlOperator; or performed in a separate thread. A QProgressBar in the status bar of your main window is often an alternative to a modeless progress dialog.
+A modeless progress dialog is suitable for operations that take place in the background, where the user is able to interact with the application. Such operations are typically based on TQTimer (or TQObject::timerEvent()), QSocketNotifier, or QUrlOperator; or performed in a separate thread. A QProgressBar in the status bar of your main window is often an alternative to a modeless progress dialog.
.PP
You need to have an event loop to be running, connect the canceled() signal to a slot that stops the operation, and call setProgress() at intervals. For example:
.PP
@@ -191,7 +191,7 @@ Operation::Operation( TQObject *parent = 0 )
.br
connect( pd, TQ_SIGNAL(canceled()), this, TQ_SLOT(cancel()) );
.br
- t = new QTimer( this );
+ t = new TQTimer( this );
.br
connect( t, TQ_SIGNAL(timeout()), this, TQ_SLOT(perform()) );
.br