startcenter: Tooltip should show the full URL.
Change-Id: Ia8e071ebe00fb8c72973614077e778aef55fb1ab
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
@@ -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);
|
||||
|
@@ -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: */
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user