[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdebindings/qtruby/rubylib/tutorial
From:       Richard Dale <Richard_Dale () tipitina ! demon ! co ! uk>
Date:       2004-07-01 9:55:25
Message-ID: 20040701095525.776D299AA () office ! kde ! org
[Download RAW message or body]

CVS commit by rdale: 

Removed use of Qt::Rect copy constructor as it's no longer in the qtruby public api


  M +1 -1      t11/cannon.rb   1.4
  M +1 -1      t12/cannon.rb   1.4
  M +1 -1      t13/cannon.rb   1.3
  M +1 -1      t14/cannon.rb   1.3
  M +5 -5      t14/gamebrd.rb   1.4


--- kdebindings/qtruby/rubylib/tutorial/t14/cannon.rb  #1.2:1.3
@@ -113,5 +113,5 @@
                 @timerCount += 1
 
-                shotR = Qt::Rect.new( shotRect() )
+                shotR = shotRect()
 
                 if shotR.intersects( targetRect() ) 

--- kdebindings/qtruby/rubylib/tutorial/t14/gamebrd.rb  #1.3:1.4
@@ -20,5 +20,5 @@
                 
                 @box = Qt::VBox.new( self, 'cannonFrame' )
-        @box.setFrameStyle( Qt::Frame.WinPanel | Qt::Frame.Sunken )
+        @box.setFrameStyle( Qt::Frame::WinPanel | Qt::Frame::Sunken )
                 @cannonField = CannonField.new( @box, 'cannonField' )
 
@@ -46,5 +46,5 @@
                                                                 
                 @restart = Qt::PushButton.new( '&New Game', self, 'newgame' )
-                @restart.setFont( Qt::Font.new( 'Times', 18, Qt::Font.Bold ) )
+                @restart.setFont( Qt::Font.new( 'Times', 18, Qt::Font::Bold ) )
 
                 connect( @restart, SIGNAL('clicked()'), self, SLOT('newGame()') )
@@ -56,9 +56,9 @@
                                 
                 @accel = Qt::Accel.new( self )
-        @accel.connectItem( @accel.insertItem( Qt::KeySequence.new(Qt.Key_Enter) ),
+        @accel.connectItem( @accel.insertItem( Qt::KeySequence.new(Qt::Key_Enter) ),
                             self, SLOT('fire()') )
-        @accel.connectItem( @accel.insertItem( Qt::KeySequence.new(Qt.Key_Return) ),
+        @accel.connectItem( @accel.insertItem( Qt::KeySequence.new(Qt::Key_Return) ),
                             self, SLOT('fire()') )
-                @accel.connectItem( @accel.insertItem( Qt::KeySequence.new('Qt.CTRL+Key_Q') ),
+                @accel.connectItem( @accel.insertItem( Qt::KeySequence.new(Qt::CTRL+Qt::Key_Q) ),
                                                         $qApp, SLOT('quit()') )
                                                                         

--- kdebindings/qtruby/rubylib/tutorial/t13/cannon.rb  #1.2:1.3
@@ -111,5 +111,5 @@
                 @timerCount += 1
 
-                shotR = Qt::Rect.new( shotRect() )
+                shotR = Qt::Rect.new()
 
                 if shotR.intersects( targetRect() ) 

--- kdebindings/qtruby/rubylib/tutorial/t12/cannon.rb  #1.3:1.4
@@ -76,5 +76,5 @@
                 @timerCount += 1
 
-                shotR = Qt::Rect.new( shotRect() )
+                shotR = Qt::Rect.new()
 
                 if shotR.intersects( targetRect() ) 

--- kdebindings/qtruby/rubylib/tutorial/t11/cannon.rb  #1.3:1.4
@@ -60,5 +60,5 @@
                 @timerCount += 1
 
-                shotR = Qt::Rect.new( shotRect() )
+                shotR = Qt::Rect.new()
 
                 if shotR.x() > width() || shotR.y() > height()


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic