summaryrefslogtreecommitdiff
path: root/sfx2/source/control/templateview.cxx
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-12-06 13:30:53 +0100
committerCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-12-10 16:11:56 +0100
commit99584c777f0d795644cfa04f16c4bd526cebd052 (patch)
tree7ca3fa4ce7fe8e1129524215c7e6cf4e4c6cd2a5 /sfx2/source/control/templateview.cxx
parent35a19a8f048d282bf5389e9497f89d2b9dba1fe6 (diff)
Revert "Template Manager: ban double-click"
This reverts commit 5487769838570ba5f1b35529689321e1842bae31. Come back to a more consistant UI: - single click for selection. CTRL modifier for multi-selection - double click for action - removed item's checkbox - get rid of the selection mode - no hover on items Change-Id: I82863c77ed6a45410242a244545505a5b898ba56
Diffstat (limited to 'sfx2/source/control/templateview.cxx')
-rw-r--r--sfx2/source/control/templateview.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sfx2/source/control/templateview.cxx b/sfx2/source/control/templateview.cxx
index 1156fa82b79e..0892a158e0bc 100644
--- a/sfx2/source/control/templateview.cxx
+++ b/sfx2/source/control/templateview.cxx
@@ -108,7 +108,7 @@ void TemplateView::InsertItems (const std::vector<TemplateItemProperties> &rTemp
{
for (size_t i = 0, n = rTemplates.size(); i < n; ++i )
{
- TemplateViewItem *pItem = new TemplateViewItem(*this,this);
+ TemplateViewItem *pItem = new TemplateViewItem(*this);
const TemplateItemProperties *pCur = &rTemplates[i];
pItem->mnId = pCur->nId;
@@ -208,9 +208,9 @@ void TemplateView::MouseButtonDown (const MouseEvent &rMEvt)
ThumbnailView::MouseButtonDown(rMEvt);
}
-void TemplateView::OnItemClicked(ThumbnailViewItem *pItem)
+void TemplateView::OnItemDblClicked(ThumbnailViewItem *pItem)
{
- maClickHdl.Call(pItem);
+ maDblClickHdl.Call(pItem);
}
IMPL_LINK_NOARG(TemplateView, ChangeNameHdl)