summaryrefslogtreecommitdiffstats
path: root/languages/ruby/app_templates/kapp
diff options
context:
space:
mode:
Diffstat (limited to 'languages/ruby/app_templates/kapp')
-rw-r--r--languages/ruby/app_templates/kapp/app.rb6
-rw-r--r--languages/ruby/app_templates/kapp/appview.rb4
-rw-r--r--languages/ruby/app_templates/kapp/pref.rb12
3 files changed, 11 insertions, 11 deletions
diff --git a/languages/ruby/app_templates/kapp/app.rb b/languages/ruby/app_templates/kapp/app.rb
index 37a00d8b..af807fe9 100644
--- a/languages/ruby/app_templates/kapp/app.rb
+++ b/languages/ruby/app_templates/kapp/app.rb
@@ -181,13 +181,13 @@ class %{APPNAMESC} < KDE::MainWindow
if @printer.nil? then @printer = KDE::Printer.new end
if @printer.setup(self)
# setup the printer. with Qt, you always "print" to a
- # Qt::Painter.. whether the output medium is a pixmap, a screen,
+ # TQt::Painter.. whether the output medium is a pixmap, a screen,
# or paper
- p = Qt::Painter.new
+ p = TQt::Painter.new
p.begin(@printer)
# we let our view do the actual printing
- metrics = Qt::PaintDeviceMetrics.new(@printer)
+ metrics = TQt::PaintDeviceMetrics.new(@printer)
@view.print(p, metrics.height(), metrics.width())
# and send the result to the printer
diff --git a/languages/ruby/app_templates/kapp/appview.rb b/languages/ruby/app_templates/kapp/appview.rb
index e75ca6bc..3fed1ce1 100644
--- a/languages/ruby/app_templates/kapp/appview.rb
+++ b/languages/ruby/app_templates/kapp/appview.rb
@@ -10,7 +10,7 @@
@author %{AUTHOR} <%{EMAIL}>
@version %{VERSION}
=end
-class %{APPNAMESC}View < Qt::Widget
+class %{APPNAMESC}View < TQt::Widget
#
# Use this signal to change the content of the statusbar
@@ -32,7 +32,7 @@ class %{APPNAMESC}View < Qt::Widget
@dcop = %{APPNAMESC}Iface.new(self)
# setup our layout manager to automatically add our widgets
- top_layout = Qt::HBoxLayout.new(self)
+ top_layout = TQt::HBoxLayout.new(self)
top_layout.setAutoAdd(true)
# we want to look for all components that satisfy our needs. the
diff --git a/languages/ruby/app_templates/kapp/pref.rb b/languages/ruby/app_templates/kapp/pref.rb
index 98669ad2..cf8339e9 100644
--- a/languages/ruby/app_templates/kapp/pref.rb
+++ b/languages/ruby/app_templates/kapp/pref.rb
@@ -15,24 +15,24 @@ class %{APPNAMESC}Preferences < KDE::DialogBase
end
end
-class %{APPNAMESC}PrefPageOne < Qt::Frame
+class %{APPNAMESC}PrefPageOne < TQt::Frame
def initialize(parent)
super(parent)
- layout = Qt::HBoxLayout.new(self)
+ layout = TQt::HBoxLayout.new(self)
layout.setAutoAdd(true)
- Qt::Label.new(i18n("Add something here"), self)
+ TQt::Label.new(i18n("Add something here"), self)
end
end
-class %{APPNAMESC}PrefPageTwo < Qt::Frame
+class %{APPNAMESC}PrefPageTwo < TQt::Frame
def initialize(parent)
super(parent)
- layout = Qt::HBoxLayout.new(self)
+ layout = TQt::HBoxLayout.new(self)
layout.setAutoAdd(true)
- Qt::Label.new(i18n("Add something here"), self)
+ TQt::Label.new(i18n("Add something here"), self)
end
end