diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2011-12-09 15:29:56 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2011-12-12 16:40:29 +0100 |
commit | c2bbd9066ae8b6902d51b8d9782702252eec5d95 (patch) | |
tree | 03b2d030bf08433f1fc346d7ef8b81adeee861c1 /src/history | |
parent | Rebase fix (diff) | |
download | rekonq-c2bbd9066ae8b6902d51b8d9782702252eec5d95.tar.xz |
Sync improvements, last bunch!
Improved code division (it will be super easy now adding a new handler)
Added a new config UI (QWizard based)
Diffstat (limited to 'src/history')
-rw-r--r-- | src/history/historypanel.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/history/historypanel.cpp b/src/history/historypanel.cpp index 976a1a9c..e09b4f48 100644 --- a/src/history/historypanel.cpp +++ b/src/history/historypanel.cpp @@ -84,11 +84,11 @@ void HistoryPanel::contextMenuItem(const QPoint &pos) menu.addAction(action); action = new KAction(KIcon("edit-clear"), i18n("Remove Entry"), this); - connect(action,SIGNAL(triggered()),this,SLOT(deleteEntry())); + connect(action, SIGNAL(triggered()), this, SLOT(deleteEntry())); menu.addAction(action); action = new KAction(KIcon("edit-clear"), i18n("Remove all occurrences"), this); - connect(action,SIGNAL(triggered()),this,SLOT(forgetSite())); + connect(action, SIGNAL(triggered()), this, SLOT(forgetSite())); menu.addAction(action); menu.exec(panelTreeView()->mapToGlobal(pos)); @@ -149,7 +149,7 @@ void HistoryPanel::deleteGroup() if (!index.isValid()) return; - //Getting all URLs of sub items. + //Getting all URLs of sub items. QList<KUrl> allChild; for (int i = 0; i < index.model()->rowCount(index); i++) allChild << qVariantValue<KUrl>(index.child(i, 0).data(Qt::UserRole)); @@ -172,9 +172,9 @@ void HistoryPanel::setup() void HistoryPanel::deleteEntry() { QModelIndex index = panelTreeView()->currentIndex(); - if(!index.isValid()) + if (!index.isValid()) return; - removedFolderIndex=index.parent().row(); + removedFolderIndex = index.parent().row(); rApp->historyManager()->removeHistoryEntry(qVariantValue< KUrl >(index.data(Qt::UserRole))); @@ -186,13 +186,13 @@ void HistoryPanel::deleteEntry() void HistoryPanel::forgetSite() { QModelIndex index = panelTreeView()->currentIndex(); - if(!index.isValid()) + if (!index.isValid()) return; - removedFolderIndex=index.row(); + removedFolderIndex = index.row(); QString site = qVariantValue< KUrl >(index.data(Qt::UserRole)).host(); QList<HistoryItem> toRemove = rApp->historyManager()->find(site); - for(int i = 0; i < toRemove.length(); i++) + for (int i = 0; i < toRemove.length(); i++) { rApp->historyManager()->removeHistoryEntry(KUrl(toRemove.at(i).url)); } |