[rekonq] What does action->setData do?
Furkan Üzümcü
furkanuzumcu at gmail.com
Thu Dec 9 23:03:23 CET 2010
I'm trying to add Forward pull down menu like Back pull down menu. I use
this code but I can't really figure out what action->setData does and what
it gets?
1.
2. for (int i = 0; i < listCount ; i++)
3. {
4. QWebHistoryItem item = historyList.at(i);
5. KAction *action = new KAction(this);
6. action->setData(i);
7. KIcon icon = Application::iconManager()->iconForUrl(item.url());
8. action->setIcon(icon);
9. action->setText(item.title());
10. m_historyForwardMenu->addAction(action);
11. }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/rekonq/attachments/20101210/6042dee1/attachment.htm
More information about the rekonq
mailing list