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

List:       kde-commits
Subject:    KDE/kdelibs/kross/ui
From:       Arto Hytönen <amthpublic () gmail ! com>
Date:       2007-08-13 23:47:51
Message-ID: 1187048871.107516.15919.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 699725 by amth:

Fixes Krazy issue 6 on kdelibs/kross.

QString path fix.


 M  +2 -2      model.cpp  


--- trunk/KDE/kdelibs/kross/ui/model.cpp #699724:699725
@@ -328,9 +328,9 @@
     if( ! index.isValid() ) return QString();
     ActionCollectionModelItem* item = static_cast<ActionCollectionModelItem*>(index.internalPointer());
     QString n = item->name();
-    if( item->type == ActionCollectionModelItem::CollectionType ) n += "/";
+    if( item->type == ActionCollectionModelItem::CollectionType ) n += '/';
     QString p = fullPath( item->parent ); //recursive
-    return p.isNull() ? n : ( p.endsWith("/") ? p + n : p + "/" + n );
+    return p.isNull() ? n : ( p.endsWith('/') ? p + n : p + '/' + n );
 }
 
 QMimeData* ActionCollectionModel::mimeData(const QModelIndexList& indexes) const
[prev in list] [next in list] [prev in thread] [next in thread] 

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