summaryrefslogtreecommitdiffstats
path: root/qtruby/rubylib/examples/qt-examples/progress
diff options
context:
space:
mode:
Diffstat (limited to 'qtruby/rubylib/examples/qt-examples/progress')
-rw-r--r--qtruby/rubylib/examples/qt-examples/progress/progress.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/qtruby/rubylib/examples/qt-examples/progress/progress.rb b/qtruby/rubylib/examples/qt-examples/progress/progress.rb
index 1ec02614..3b0b11f8 100644
--- a/qtruby/rubylib/examples/qt-examples/progress/progress.rb
+++ b/qtruby/rubylib/examples/qt-examples/progress/progress.rb
@@ -118,18 +118,18 @@ class CPUWaster < TQt::Widget
FIRST_DRAW_ITEM.upto(LAST_DRAW_ITEM) {
|i| file.insertItem( "#{drawItemRects(i)} Rectangles", i)
}
- connect( menubar, SIGNAL('activated(int)'), self, SLOT('doMenuItem(int)') )
+ connect( menubar, TQ_SIGNAL('activated(int)'), self, TQ_SLOT('doMenuItem(int)') )
@file.insertSeparator
- @file.insertItem("Quit", $qApp, SLOT('quit()'))
+ @file.insertItem("Quit", $qApp, TQ_SLOT('quit()'))
@options = TQt::PopupMenu.new
@menubar.insertItem("&Options", options)
- @td_id = options.insertItem("Timer driven", self, SLOT('timerDriven()'))
- @ld_id = options.insertItem("Loop driven", self, SLOT('loopDriven()'))
+ @td_id = options.insertItem("Timer driven", self, TQ_SLOT('timerDriven()'))
+ @ld_id = options.insertItem("Loop driven", self, TQ_SLOT('loopDriven()'))
@options.insertSeparator
- @dl_id = options.insertItem("Default label", self, SLOT('defaultLabel()'))
- @cl_id = options.insertItem("Custom label", self, SLOT('customLabel()'))
+ @dl_id = options.insertItem("Default label", self, TQ_SLOT('defaultLabel()'))
+ @cl_id = options.insertItem("Custom label", self, TQ_SLOT('customLabel()'))
@options.insertSeparator
- @md_id = options.insertItem("No minimum duration", self, SLOT('toggleMinimumDuration()'))
+ @md_id = options.insertItem("No minimum duration", self, TQ_SLOT('toggleMinimumDuration()'))
@options.setCheckable true
loopDriven
@@ -239,7 +239,7 @@ class CPUWaster < TQt::Widget
@rects = n
@pb = newProgressDialog("Drawing rectangles.\nUsing timer event.", n, false)
@pb.setCaption("Please Wait")
- connect(@pb, SIGNAL('cancelled()'), self, SLOT('stopDrawing()'))
+ connect(@pb, TQ_SIGNAL('cancelled()'), self, TQ_SLOT('stopDrawing()'))
enableDrawingItems(false)
startTimer(0)
@got_stop = false