Reply to topic

How to show the bookmarks in Lancelot

User avatar Hannah
Registered Member
Posts
1
Karma
0
OS
Dear All,
I want to rebuild the KDE4.1.3's Lancelot source code and I want to show the Konqueror's bookmarks list in the Menu. But I don't know how to change the source code.
Can you help me?

Thank you!

Last edited by Hannah on Mon Jan 05, 2009 3:07 am, edited 1 time in total.
User avatar anda_skoa
KDE Developer
Posts
783
Karma
4
OS
I think it would be best to directly contact the Lancelot developer Ivan Cukic.

Most likely he is currently the only one actually knowing the Lancelot code and I am quite sure he wouldn't mind anyone helping improve the project.

Contact information can be found at the end of this page
http://ivan.fomentgroup.org/

Cheers,
_


anda_skoa, proud to be a member of KDE forums since 2008-Oct.
User avatar ivan
KDE Developer
Posts
916
Karma
14
OS

RE: How to show the bookmarks in Menu

Thu Jan 01, 2009 11:14 am
To display the bookmarks, you can use the Models::FolderModel("bookmarks:/")

Open the app/src/LancelotWindow.cpp and go to the
Code: Select all
void LancelotWindow::setupModels()


Add to the first part of the method (// Models: section)
Code: Select all
m_models["Bookmarks"]            = new Models::FolderModel("bookmarks:/");


And add
Code: Select all
Merged(m_modelGroups["###GROUP###"])->addModel ("Bookmarks", QIcon(), i18n("Bookmarks:"), m_models["Bookmarks"]);

to the // Assignments: Model - Group: section, just replace ###GROUP### with the place you want to show the bookmarks in.

The group can be: "ComputerLeft", "ComputerRight", "DocumentsLeft", "DocumentsRight", "ContactsLeft" and "ContactsRight"

Cheerio!


Image
User avatar ivan
KDE Developer
Posts
916
Karma
14
OS
p.s. Please change the title of the topic to "How to show the bookmarks in Lancelot" for other users to know what this thread is all about (though, I don't mind at all calling Lancelot /Menu with capital M/ :D)


Image

 
Reply to topic

Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], boudewijn, cairncrossr, chechoxque, Google [Bot], ipwizard, Stephen Leibowitz, Yahoo [Bot]