Commit 8690497b authored by Albert Astals Cid's avatar Albert Astals Cid Committed by Albert Astals Cid

Add Page::annotation

Will use it later
parent 5c9edea4
......@@ -488,6 +488,16 @@ QLinkedList< Annotation* > Page::annotations() const
return m_annotations;
}
Annotation * Page::annotation( const QString & uniqueName ) const
{
foreach(Annotation *a, m_annotations)
{
if ( a->uniqueName() == uniqueName )
return a;
}
return nullptr;
}
const Action * Page::pageAction( PageAction action ) const
{
switch ( action )
......
......@@ -249,6 +249,12 @@ class OKULARCORE_EXPORT Page
*/
QLinkedList< Annotation* > annotations() const;
/**
* Returns the annotation with the given unique name.
* @since TODO
*/
Annotation * annotation( const QString & uniqueName ) const;
/**
* Returns the @ref Action object which is associated with the given page @p action
* or 0 if no page action is set.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment