Commit 9791d259 authored by David Hurka's avatar David Hurka 🐬 Committed by Oliver Sander

Improve documentation of Document::setPageTextSelection()

Improve the documentation of Document::setPageTextSelection()
and PagePrivate::setTextSelections(). Also mention which argument
will be deleted.

Test Plan: Check doxygen output

Reviewers: #okular, aacid

Reviewed By: #okular, aacid

Subscribers: okular-devel

Tags: #okular

Differential Revision:
parent 60d377ac
......@@ -582,7 +582,9 @@ class OKULARCORE_EXPORT Document : public QObject
void removePageAnnotations( int page, const QList<Annotation*> &annotations );
* Sets the text selection for the given @p page.
* Clears the text selection highlights for the given @p page,
* creates new ones if @p rect is not nullptr,
* and deletes @p rect.
* @param page The number of the page.
* @param rect The rectangle of the selection.
......@@ -93,7 +93,12 @@ class PagePrivate
void changeSize( const PageSize &size );
* Sets the @p color and @p areas of text selections.
* Clears current text selection highlight areas,
* creates new ones if @p areas is not nullptr,
* and deletes @p areas.
* @param areas Areas of new text selections.
* @param color Color of new text selections.
void setTextSelections( RegularAreaRect *areas, const QColor & color );
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment