diff options
Diffstat (limited to 'amarok/src/scripts')
-rw-r--r-- | amarok/src/scripts/databasescripts/databaseScripts.rb | 24 | ||||
-rw-r--r-- | amarok/src/scripts/templates/amarok.rb | 6 | ||||
-rw-r--r-- | amarok/src/scripts/templates/ruby_qt_template.rb | 2 |
3 files changed, 16 insertions, 16 deletions
diff --git a/amarok/src/scripts/databasescripts/databaseScripts.rb b/amarok/src/scripts/databasescripts/databaseScripts.rb index 4d7588ff..efbefc63 100644 --- a/amarok/src/scripts/databasescripts/databaseScripts.rb +++ b/amarok/src/scripts/databasescripts/databaseScripts.rb @@ -20,7 +20,7 @@ rescue LoadError exit end -class DatabaseScriptChooser < Qt::Dialog +class DatabaseScriptChooser < TQt::Dialog attr_reader :m_optionCombo attr_reader :m_saveText @@ -36,16 +36,16 @@ class DatabaseScriptChooser < Qt::Dialog setName("Database Script Chooser") end - @Form1Layout = Qt::GridLayout.new(self, 1, 1, 2, 2, 'Form1Layout') + @Form1Layout = TQt::GridLayout.new(self, 1, 1, 2, 2, 'Form1Layout') - @layout3 = Qt::VBoxLayout.new(nil, 0, 2, 'layout3') + @layout3 = TQt::VBoxLayout.new(nil, 0, 2, 'layout3') - @m_optionCombo = Qt::ComboBox.new(false, self, "m_optionCombo") + @m_optionCombo = TQt::ComboBox.new(false, self, "m_optionCombo") @layout3.addWidget(@m_optionCombo) - @layout1 = Qt::HBoxLayout.new(nil, 0, 2, 'layout1') + @layout1 = TQt::HBoxLayout.new(nil, 0, 2, 'layout1') - @m_saveText = Qt::Label.new(self, "m_saveText") + @m_saveText = TQt::Label.new(self, "m_saveText") @layout1.addWidget(@m_saveText) @m_saveDir = KDE::URLRequester.new(self, "m_saveDir") @@ -54,18 +54,18 @@ class DatabaseScriptChooser < Qt::Dialog @layout1.addWidget(@m_saveDir) @layout3.addLayout(@layout1) - @spacer1 = Qt::SpacerItem.new(20, 21, Qt::SizePolicy::Minimum, Qt::SizePolicy::Expanding) + @spacer1 = TQt::SpacerItem.new(20, 21, TQt::SizePolicy::Minimum, TQt::SizePolicy::Expanding) @layout3.addItem(@spacer1) - @layout2 = Qt::HBoxLayout.new(nil, 0, 2, 'layout2') + @layout2 = TQt::HBoxLayout.new(nil, 0, 2, 'layout2') - @m_cancelButton = Qt::PushButton.new(self, "@m_cancelButton") + @m_cancelButton = TQt::PushButton.new(self, "@m_cancelButton") @layout2.addWidget(@m_cancelButton) - @spacer2 = Qt::SpacerItem.new(61, 20, Qt::SizePolicy::Expanding, Qt::SizePolicy::Minimum) + @spacer2 = TQt::SpacerItem.new(61, 20, TQt::SizePolicy::Expanding, TQt::SizePolicy::Minimum) @layout2.addItem(@spacer2) - @m_okayButton = Qt::PushButton.new(self, "m_okayButton") + @m_okayButton = TQt::PushButton.new(self, "m_okayButton") @layout2.addWidget(@m_okayButton) @layout3.addLayout(@layout2) @@ -79,7 +79,7 @@ class DatabaseScriptChooser < Qt::Dialog @Form1Layout.addLayout(@layout3, 0, 0) languageChange() - resize( Qt::Size.new(356, 137).expandedTo(minimumSizeHint()) ) + resize( TQt::Size.new(356, 137).expandedTo(minimumSizeHint()) ) clearWState( WState_Polished ) end diff --git a/amarok/src/scripts/templates/amarok.rb b/amarok/src/scripts/templates/amarok.rb index a0bbef95..fa7b2c2a 100644 --- a/amarok/src/scripts/templates/amarok.rb +++ b/amarok/src/scripts/templates/amarok.rb @@ -18,14 +18,14 @@ # 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301, USA. # ############################################################################ -class QtIoListener < Qt::Object +class QtIoListener < TQt::Object Q_SLOTS 'dataRecieved()' def initialize(app, iostream, lineHandler) super(app) @lineHandler = lineHandler @iostream = iostream - streamListener = Qt::SocketNotifier.new(iostream.fileno, Qt::SocketNotifier.Read, app, 'stdinWatcher') - Qt::Object.connect(streamListener, SIGNAL("activated(int)"), self, SLOT("dataRecieved()") ) + streamListener = TQt::SocketNotifier.new(iostream.fileno, TQt::SocketNotifier.Read, app, 'stdinWatcher') + TQt::Object.connect(streamListener, SIGNAL("activated(int)"), self, SLOT("dataRecieved()") ) end def dataRecieved diff --git a/amarok/src/scripts/templates/ruby_qt_template.rb b/amarok/src/scripts/templates/ruby_qt_template.rb index 9e75f7a3..4a13d11f 100644 --- a/amarok/src/scripts/templates/ruby_qt_template.rb +++ b/amarok/src/scripts/templates/ruby_qt_template.rb @@ -59,7 +59,7 @@ class ExampleActions < AmaroKSlots @app.exit end end -a = Qt::Application.new(ARGV) +a = TQt::Application.new(ARGV) e = ExampleActions.new(a) AmarokCommunication = AmaroKLib.new(a, e) a.exec()
\ No newline at end of file |