summaryrefslogtreecommitdiff
path: root/src/historydialog.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-06-02 19:07:49 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-06-02 19:07:49 +0200
commit8361d1cc4e8fe34ba737815b7de5d8e0bf0b34d7 (patch)
tree50fa6564b14cff40946bd1aa8af2c5ec6217e88e /src/historydialog.cpp
parentPorting history Ui to KDE.. (diff)
parentMoving guessUrlFromString function to Application class (diff)
downloadrekonq-8361d1cc4e8fe34ba737815b7de5d8e0bf0b34d7.tar.xz
Fixing (again) merge conflicts..
Diffstat (limited to 'src/historydialog.cpp')
-rw-r--r--src/historydialog.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/historydialog.cpp b/src/historydialog.cpp
index da1c5858..f4aea3bb 100644
--- a/src/historydialog.cpp
+++ b/src/historydialog.cpp
@@ -69,13 +69,16 @@ HistoryDialog::HistoryDialog(QWidget *parent, HistoryManager *setHistory)
m_historyWidg->tree->setAlternatingRowColors(true);
QFontMetrics fm(font());
- int header = fm.width(QLatin1Char('m')) * 40;
+ int header = fm.width(QLatin1Char('m')) * 30;
m_historyWidg->tree->header()->resizeSection(0, header);
m_historyWidg->tree->header()->setStretchLastSection(true);
- connect(m_historyWidg->tree, SIGNAL(activated(const QModelIndex&)), this, SLOT(open()));
+
m_historyWidg->tree->setContextMenuPolicy(Qt::CustomContextMenu);
+
connect(m_historyWidg->tree, SIGNAL(customContextMenuRequested(const QPoint &)),
this, SLOT(customContextMenuRequested(const QPoint &)));
+
+ connect(m_historyWidg->tree, SIGNAL(activated(const QModelIndex&)), this, SLOT(open()));
}