startcenter: Tooltip should show the full URL.

Change-Id: Ia8e071ebe00fb8c72973614077e778aef55fb1ab
This commit is contained in:
Jan Holesovsky
2013-12-13 13:00:13 +01:00
parent f655b23d57
commit dd7a3f5fb8
5 changed files with 17 additions and 1 deletions

View File

@@ -19,6 +19,9 @@ public:
const OUString &rTitle, sal_uInt16 nId);
virtual void setEditTitle (bool edit, bool bChangeFocus = true);
/// Text to be used for the tooltip.
virtual OUString getHelpText() const;
OUString maURL;
};

View File

@@ -89,6 +89,9 @@ public:
void setHighlight (bool state);
/// Text to be used for the tooltip.
virtual OUString getHelpText() const;
virtual void setEditTitle (bool edit, bool bChangeFocus = true);
void updateTitleEditSize ();
virtual void setTitle (const OUString& rTitle);

View File

@@ -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: */

View File

@@ -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;

View File

@@ -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;