Get url list
SUJITH H
sujith.h at gmail.com
Wed May 13 08:21:58 CEST 2009
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/plasma-devel/attachments/20090513/0e23c434/attachment.htm
More information about the Plasma-devel
mailing list