[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-pim
Subject: Re: [Kde-pim] KPassivePopup issues
From: Tobias Koenig <tokoe () kde ! org>
Date: 2005-05-30 12:06:14
Message-ID: 20050530120614.GA2511 () ghostdog ! localnet
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Sun, May 29, 2005 at 07:37:22PM +0200, Matt Douhan wrote:
> On Sunday 29 May 2005 17.06, Ingo Klöcker wrote:
Hi Matt,
> > Call invalidpop->message( QString(), errorMsg, QPixmap(), this, 0, 1 );
> >
>
> Yes this does indeed solve the issue where the timout is not reckognised.
But the cleaner way would be
invalidpop->show()
So the code should look like the following:
void Validator::invalidInput()
{
if ( !mInvalidPopup ) {
mInvalidPopup = new KPassivePopup( this );
mInvalidPopup->setView( i18n( "Wrong Input" ), i18n( "Please type in an email of \
the following form..." ) ); }
if ( !mInvalidPopup->isShown() )
mInvalidPopup->show();
}
void Validator::validInput()
{
if ( mInvalidPopup )
mInvalidPopup->hide();
}
invalidInput() is called whenever an invalid character is typed in,
and validInput() whenever a valid character is typed in.
Ciao,
Tobias
--
Separate politics from religion and economy!
The Councile of the European Union is an undemocratic and illegal institution!
["signature.asc" (application/pgp-signature)]
___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
_______________________________________________
kde-pim mailing list
kde-pim@kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
kde-pim home page at http://pim.kde.org/
___________________________________________________________
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic