<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Aaron J. Seigo wrote:
<blockquote cite="mid:200905111414.23520.aseigo@kde.org" type="cite">
<pre wrap="">On Monday 11 May 2009, SUJITH H wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Can anyone help me how to get the url list of the sorted item
in launcher applet?
</pre>
</blockquote>
<pre wrap=""><!---->
KUrl::List urls;
foreach (QuicklaunchIcon *icon, m_icons) {
urls << icon->url();
}
</pre>
</blockquote>
Ok I think my explanation wasn't sufficient. My intention is to get the
Url of the sorted item in the launcher applet(kickoff). That is if
sorted either A-Z or Z-A. And then update globalFavoruteList
accordingly. Here is the small snippet I had done to sortFavorite
method in kickoff/core/favoritesmodel.cpp:<br>
<br>
void FavoritesModel::sortFavorites(Qt::SortOrder order)<br>
{<br>
foreach (FavoritesModel *model, Private::models) {<br>
model->d->headerItem->sortChildren(0, order);<br>
}<br>
FavoritesModel *model;<br>
QStandardItem *childData;<br>
for (int i = 0; i < numberOfFavorites(); i++) {<br>
childData = d->headerItem->child(i, 0);<br>
}<br>
Private::saveFavorites();<br>
}<br>
<br>
I am able to iterate the row's. But have no clue how to retrieve the
url of that sorted Favorite item :(<br>
<br>
This work is related to the bug
<a class="moz-txt-link-freetext" href="https://bugs.kde.org/show_bug.cgi?id=189607">https://bugs.kde.org/show_bug.cgi?id=189607</a><br>
<br>
Sujith H<br>
</body>
</html>