Simplified IDEAL mode show/hide problems

Vladimir Prus ghost at
Thu Aug 25 15:16:04 UTC 2005


I have a problem with the Simplified IDEAL mode. One of debugger widgets --
the disassembler widgets, overrides showEvent and hideEvent. It does so in
order to request disassemble from gdb only if that windows as shown, as the
operation is somewhat slow.

This works fine with KMDI. However, with Simplified IDEAl mode, this does
not work, as showEvent is called right when starting debugger.

Here's the backtrace:

#0  GDBDebugger::DisassembleWidget::showEvent (this=0x8873ab8)
    at disassemblewidget.cpp:172
#1  0x41539c9a in QWidget::event () from /usr/lib/
#2  0x4165dc7d in QTextEdit::event () from /usr/lib/
#3  0x414a6e1f in QApplication::internalNotify ()
from /usr/lib/
#4  0x414a641e in QApplication::notify () from /usr/lib/
#5  0x41032ac5 in KApplication::notify () from /usr/lib/
#6  0x41538b3a in QWidget::show () from /usr/lib/
#7  0x416185a8 in QScrollView::show () from /usr/lib/
#8  0x4023643a in DDockWindow::showWidget ()
   from /home/ghost/Work/Module/kdevelop/src/newui/.libs/
#9  0x40087a9e in SimpleMainWindow::setViewAvailable (this=0x80f1568,
    pView=0x8873ab8, bEnabled=true) at simplemainwindow.cpp:163
#10 0x427bcd10 in GDBDebugger::DebuggerPart::startDebugger (this=0x8848280)
    at debuggerpart.cpp:701

Is it possible to fix this so that showEvent and hideEvent are only invoked
when the window is really shown/hidden?


More information about the KDevelop-devel mailing list