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. }
_______________________________________________
rekonq mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/rekonq

Reply via email to