summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2013-12-13 13:00:13 +0100
committerJan Holesovsky <kendy@collabora.com>2013-12-13 13:01:30 +0100
commitdd7a3f5fb873b77da326eb8339c2ef9e3bf4fbd1 (patch)
tree4b7eb638ff0ea7823f6223d6cd9b5cd69e5a741e /sfx2
parentf655b23d57f234c0e92255302353f2a0a3fad487 (diff)
startcenter: Tooltip should show the full URL.
Change-Id: Ia8e071ebe00fb8c72973614077e778aef55fb1ab
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/control/recentdocsviewitem.cxx5
-rw-r--r--sfx2/source/control/thumbnailview.cxx2
-rw-r--r--sfx2/source/control/thumbnailviewitem.cxx5
3 files changed, 11 insertions, 1 deletions
diff --git a/sfx2/source/control/recentdocsviewitem.cxx b/sfx2/source/control/recentdocsviewitem.cxx
index 570e782ad57b..2531da197a7e 100644
--- a/sfx2/source/control/recentdocsviewitem.cxx
+++ b/sfx2/source/control/recentdocsviewitem.cxx
@@ -69,4 +69,9 @@ void RecentDocsViewItem::setEditTitle (bool edit, bool bChangeFocus)
(void)bChangeFocus;
}
+OUString RecentDocsViewItem::getHelpText() const
+{
+ return maURL;
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sfx2/source/control/thumbnailview.cxx b/sfx2/source/control/thumbnailview.cxx
index 137aeb07ba5d..695447e47225 100644
--- a/sfx2/source/control/thumbnailview.cxx
+++ b/sfx2/source/control/thumbnailview.cxx
@@ -96,7 +96,7 @@ void ThumbnailView::MouseMove(const MouseEvent& rMEvt)
if (pItem->mbVisible && !rMEvt.IsLeaveWindow() && pItem->getDrawArea().IsInside(aPoint))
{
- aHelp = pItem->maTitle;
+ aHelp = pItem->getHelpText();
if (!pItem->isHighlighted())
bNeedsPaint = true;
diff --git a/sfx2/source/control/thumbnailviewitem.cxx b/sfx2/source/control/thumbnailviewitem.cxx
index 6198f45710d4..9f60f37965cd 100644
--- a/sfx2/source/control/thumbnailviewitem.cxx
+++ b/sfx2/source/control/thumbnailviewitem.cxx
@@ -146,6 +146,11 @@ void ThumbnailViewItem::setHighlight (bool state)
mbHover = state;
}
+OUString ThumbnailViewItem::getHelpText() const
+{
+ return maTitle;
+}
+
void ThumbnailViewItem::setEditTitle (bool edit, bool bChangeFocus)
{
mbEditTitle = edit;