summaryrefslogtreecommitdiff
path: root/src/panelhistory.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-04-28 03:15:17 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-04-28 03:15:17 +0200
commit1758686ac4b3c1a2ebf9bc88158f7cf1ccb1e8e9 (patch)
tree392cb389ceafdf97d5b0bf475cf3ff0ec4f867c0 /src/panelhistory.cpp
parentkdialog fixes (diff)
parentTabBar context menu fix ported (diff)
downloadrekonq-1758686ac4b3c1a2ebf9bc88158f7cf1ccb1e8e9.tar.xz
Merge commit 'avaddon/master' into MERGING
Diffstat (limited to 'src/panelhistory.cpp')
-rw-r--r--src/panelhistory.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/panelhistory.cpp b/src/panelhistory.cpp
index 57aa9281..9e04a88c 100644
--- a/src/panelhistory.cpp
+++ b/src/panelhistory.cpp
@@ -64,7 +64,7 @@ PanelHistory::PanelHistory(QWidget *parent)
//-
HistoryManager *historyManager = Application::historyManager();
QAbstractItemModel *model = historyManager->historyTreeModel();
-
+
m_treeProxyModel->setSourceModel(model);
m_historyTreeView->setModel(m_treeProxyModel);
m_historyTreeView->setExpanded(m_treeProxyModel->index(0, 0), true);
@@ -72,7 +72,7 @@ PanelHistory::PanelHistory(QWidget *parent)
QFontMetrics fm(font());
int header = fm.width(QLatin1Char('m')) * 40;
m_historyTreeView->header()->resizeSection(0, header);
-
+
connect(search, SIGNAL(textChanged(QString)), m_treeProxyModel, SLOT(setFilterFixedString(QString)));
connect(m_historyTreeView, SIGNAL(activated(const QModelIndex&)), this, SLOT(open()));
}
@@ -90,6 +90,6 @@ void PanelHistory::open()
QModelIndex index = m_historyTreeView->currentIndex();
if (!index.parent().isValid())
return;
- emit openUrl(index.data(HistoryModel::UrlRole).toUrl());
+ emit openUrl(index.data(HistoryModel::UrlRole).toUrl(), Rekonq::Current);
}