From 27f46d6031d41aa6ce071885a7e280e1097680e1 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 8 Jan 2024 11:54:27 +0900 Subject: Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines Signed-off-by: Michele Calgaro (cherry picked from commit 7d5aea7e8497095f76841f3dd8f2eab9c4cb58aa) --- examples/progressbar.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'examples/progressbar.py') diff --git a/examples/progressbar.py b/examples/progressbar.py index b507d08..9c42db7 100755 --- a/examples/progressbar.py +++ b/examples/progressbar.py @@ -57,11 +57,11 @@ class ProgressBar( TQButtonGroup ): toplayout.addMultiCellWidget( self.progress, 1, 1, 0, 1 ) # connect the clicked() SIGNALs of the pushbuttons to SLOTs - self.connect( self.start, SIGNAL("clicked()"), self.slotStart ) - self.connect( self.reset, SIGNAL("clicked()"), self.slotReset ) + self.connect( self.start, TQ_SIGNAL("clicked()"), self.slotStart ) + self.connect( self.reset, TQ_SIGNAL("clicked()"), self.slotReset ) - # connect the timeout() SIGNAL of the progress-timer to a SLOT - self.connect( self.timer, SIGNAL("timeout()"), self.slotTimeout ) + # connect the timeout() signal of the progress-timer to a slot + self.connect( self.timer, TQ_SIGNAL("timeout()"), self.slotTimeout ) # Let's start with normal speed... self.normal.setChecked( TRUE ) @@ -69,8 +69,8 @@ class ProgressBar( TQButtonGroup ): self.start.setFixedWidth( 80 ) self.setMinimumWidth( 300 ) - # SLOT slotStart - # This SLOT is called if the user clicks start/pause/continue button + # Slot slotStart + # This slot is called if the user clicks start/pause/continue button def slotStart( self ): # If the progress bar is at the beginning... if self.progress.progress() == -1 : @@ -100,8 +100,8 @@ class ProgressBar( TQButtonGroup ): # ...and rename the start/pause/continue button to Continue self.start.setText( "&Continue" ) - # SLOT slotReset - # This SLOT is called when the user clicks the reset button + # Slot slotReset + # This slot is called when the user clicks the reset button def slotReset( self ): # stop the timer and progress self.timer.stop() @@ -119,8 +119,8 @@ class ProgressBar( TQButtonGroup ): # reset the progressbar self.progress.reset() - # SLOT slotTimeout - # This SLOT is called each ms when the timer is + # Slot slotTimeout + # This slot is called each ms when the timer is # active (== progress is running) def slotTimeout( self ): p = self.progress.progress() -- cgit v1.2.3