Fix uninitialized constant Qt::TQt in qtruby.rb

This resolves Bug 2442

Signed-off-by: Michel Nolard <michel.nolard@gmail.com>
pull/1/head
Michel Nolard 9 years ago committed by Slávek Banko
parent 2e9822caa4
commit f46bd0ca15

@ -17,7 +17,7 @@
***************************************************************************/ ***************************************************************************/
=end =end
module Qt module TQt
module DebugLevel module DebugLevel
Off, Minimal, High, Extensive = 0, 1, 2, 3 Off, Minimal, High, Extensive = 0, 1, 2, 3
end end
@ -34,12 +34,12 @@ module Qt
end end
@@debug_level = DebugLevel::Off @@debug_level = DebugLevel::Off
def Qt.debug_level=(level) def TQt.debug_level=(level)
@@debug_level = level @@debug_level = level
Internal::setDebug TQt::QtDebugChannel::TQTDB_ALL if level >= DebugLevel::Extensive Internal::setDebug TQt::QtDebugChannel::TQTDB_ALL if level >= DebugLevel::Extensive
end end
def Qt.debug_level def TQt.debug_level
@@debug_level @@debug_level
end end

Loading…
Cancel
Save