Fix uninitialized constant Qt::TQt in qtruby.rb

This resolves Bug 2442

Signed-off-by: Michel Nolard <michel.nolard@gmail.com>
(cherry picked from commit f46bd0ca15)
r14.0.x
Michel Nolard 9 years ago committed by Slávek Banko
parent dc5f265d3e
commit 1b41f605e6

@ -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