- list = new ListView;
- list->setSelectionMode(QAbstractItemView::SingleSelection);
- list->setModel(model);
- addList(list);
- connect(list, SIGNAL(activated(const QModelIndex &)),
+ setModel(model);
+
+ addButton(tr("Add bookmark"), this, SLOT(onAdd()), "add");
+ addItemButton(tr("Go to bookmark"), this, SLOT(onGo()), "goto");
+ addItemButton(tr("Edit bookmark"), this, SLOT(onEdit()), "edit");
+ addItemButton(tr("Delete bookmark"), this, SLOT(onDelete()), "delete");
+
+ connect(this, SIGNAL(activated(const QModelIndex &)),