Fix coding style

wilder-work
Montel Laurent 13 years ago
parent aa1facce14
commit 53b923afb3
  1. 1
      accountconfigorderdialog.h
  2. 9
      kmknotify.cpp

@ -34,6 +34,7 @@ public:
enum Type {
IdentifierAccount = Qt::UserRole+1
};
private Q_SLOTS:
void slotOk();
void slotMoveUp();

@ -100,17 +100,14 @@ void KMKnotify::initCombobox()
lstNotify<< QLatin1String( "akonadi_sendlater_agent/akonadi_sendlater_agent.notifyrc" );
//TODO add other notifyrc here if necessary
Q_FOREACH( const QString& notify, lstNotify )
{
Q_FOREACH( const QString& notify, lstNotify ) {
const QString fullPath = KStandardDirs::locate( "data", notify );
if ( !fullPath.isEmpty() )
{
if ( !fullPath.isEmpty() ) {
const int slash = fullPath.lastIndexOf( QLatin1Char('/') ) - 1;
const int slash2 = fullPath.lastIndexOf( QLatin1Char('/'), slash );
const QString appname= ( slash2 < 0 ) ? QString() : fullPath.mid( slash2+1 , slash-slash2 );
if ( !appname.isEmpty() )
{
if ( !appname.isEmpty() ) {
KConfig config(fullPath, KConfig::NoGlobals, "data" );
KConfigGroup globalConfig( &config, QString::fromLatin1("Global") );
const QString icon = globalConfig.readEntry(QString::fromLatin1("IconName"), QString::fromLatin1("misc"));

Loading…
Cancel
Save