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

List:       kde-core-devel
Subject:    Re: Who has insert the KRegEditor stuff into many kdebase apps ?
From:       blackie () blackie ! dk (Jesper K !  Pedersen)
Date:       2001-11-04 17:25:40
[Download RAW message or body]

Christoph Cullmann <crossfire@babylon2k.de> writes:

| Am Sunday 04 November 2001 15:13 schrieb Jesper K. Pedersen:
| > Christoph Cullmann <crossfire@babylon2k.de> writes:
| > | But the QASSERT in the code is the wrong way !
| >
| > Which version are you using? Where do you see a QASSERT?
| Not in your app, but in the code you insert for example in kate/kwrite.
Right, but where?
Are you talking about

void SearchDialog::slotEditRegExp()
{
  KRegExpEditorInterface *iface = dynamic_cast<KRegExpEditorInterface *>( m_regExpDialog );
  Q_ASSERT( iface );
  ^^^^^^

This slot is only invoked if the button is pressed and the button only
exists if the regular expression editor was found.

The above assert can only fail if there is an internal error in the regular
expression editor, namely if it does not offer a KRegExpEditorInterface,
which it does.

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

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