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

List:       kde-commits
Subject:    Re: playground/pim/kblogger/src
From:       Marc Mutz <marc () klaralvdalens-datakonsult ! se>
Date:       2008-01-08 8:18:30
Message-ID: 200801081022.34550.marc () klaralvdalens-datakonsult ! se
[Download RAW message or body]

On Monday 07 January 2008 21:20, Christian Weilbach wrote:
> +    if( kcfg_User->text().isEmpty() ||
> +         passwordLineEdit->text().isEmpty() ||
> +         kcfg_Url->text().isEmpty() ) {
> +
> +         kDebug()<< "fill in all relevant information first";
> +         KMessageBox::sorry( 0,
> +              i18n("You need to set the username, password and url of your
> blog.")); +         return;
> +    }

For usability, consider the following:

if ( kcfg_User->text().isEmpty() ) {
    KMessageBox::sorry( ...username... );
   // switch tabs, if applicable
    kcfg_User->setFocus();
    return;
}
if ( passwordLineEdit->text().isEmpty() ) {
   KMessageBox::sorry( ... password.... );
   // switch tabs, if applicable
   passwordLineEdit->setFocus();
   return;
}
....

Thanks,
Marc

-- 
Marc Mutz -- marc@klaralvdalens-datakonsult.se, mutz@kde.org
Klarälvdalens Datakonsult AB, Platform-independent software solutions

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

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