Aaron J. Seigo wrote:
On Tuesday 12 May 2009, SUJITH H wrote:
I am able to iterate the row's. But have no clue how to retrieve the url
of that sorted Favorite item :(

KUrl url = childData->data(Kickoff::UrlRole);

I am getting segmentation fault when I run 'plasmoidviewer launcher'.
I had modified the sortFavorites. So the method becomes:

void FavoritesModel::sortFavorites(Qt::SortOrder order)
{
   foreach (FavoritesModel *model, Private::models) {
       model->d->headerItem->sortChildren(0, order);
   }
   FavoritesModel *model;
   QStandardItem *childData;
   for (int i = 0; i < numberOfFavorites(); i++) {
        childData = model->d->headerItem->child(i, 0);
        kDebug() << "Url = " << childData->data(Kickoff::UrlRole);
   }
   Private::saveFavorites();
}


Any clue why am getting segmentation fault here?


Sujith H
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

Reply via email to