lib/knj/libqt_window.rb in knjrbfw-0.0.8 vs lib/knj/libqt_window.rb in knjrbfw-0.0.9

- old
+ new

@@ -1,10 +1,10 @@ class QtWindow - def self.doCenter(tha_window) - qdw = Qt::DesktopWidget.new - - move_left = (qdw.width / 2) - (tha_window.width / 2) - move_top = (qdw.height / 2) - (tha_window.height / 2) - - tha_window.move(move_left, move_top) - end + def self.doCenter(tha_window) + qdw = Qt::DesktopWidget.new + + move_left = (qdw.width / 2) - (tha_window.width / 2) + move_top = (qdw.height / 2) - (tha_window.height / 2) + + tha_window.move(move_left, move_top) + end end \ No newline at end of file