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

List:       kdevelop-devel
Subject:    Simplified IDEAL mode show/hide problems
From:       Vladimir Prus <ghost () cs ! msu ! su>
Date:       2005-08-25 13:09:05
Message-ID: dekfth$jrs$1 () sea ! gmane ! org
[Download RAW message or body]


Hello!

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/libqt-mt.so.3
#2  0x4165dc7d in QTextEdit::event () from /usr/lib/libqt-mt.so.3
#3  0x414a6e1f in QApplication::internalNotify ()
from /usr/lib/libqt-mt.so.3
#4  0x414a641e in QApplication::notify () from /usr/lib/libqt-mt.so.3
#5  0x41032ac5 in KApplication::notify () from /usr/lib/libkdecore.so.4
#6  0x41538b3a in QWidget::show () from /usr/lib/libqt-mt.so.3
#7  0x416185a8 in QScrollView::show () from /usr/lib/libqt-mt.so.3
#8  0x4023643a in DDockWindow::showWidget ()
   from /home/ghost/Work/Module/kdevelop/src/newui/.libs/libd.so.0
#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?

Thanks,
Volodya




_______________________________________________
KDevelop-devel mailing list
KDevelop-devel@barney.cs.uni-potsdam.de
http://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

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