Changeset View
Changeset View
Standalone View
Standalone View
autotests/testingutils.h
Show All 24 Lines | 23 | { | |||
---|---|---|---|---|---|
25 | * Return the XML string associated with an annotation's properties | 25 | * Return the XML string associated with an annotation's properties | ||
26 | */ | 26 | */ | ||
27 | QString getAnnotationXml(const Okular::Annotation* annotation); | 27 | QString getAnnotationXml(const Okular::Annotation* annotation); | ||
28 | 28 | | |||
29 | /** | 29 | /** | ||
30 | * Returns true if the pairwise comparison coordinates of points in @p points1 and @p points2 are almost | 30 | * Returns true if the pairwise comparison coordinates of points in @p points1 and @p points2 are almost | ||
31 | * equal (according to qFuzzyCompare) | 31 | * equal (according to qFuzzyCompare) | ||
32 | */ | 32 | */ | ||
33 | bool pointListsAlmostEqual( QLinkedList< Okular::NormalizedPoint > points1, QLinkedList< Okular::NormalizedPoint > points2 ); | 33 | bool pointListsAlmostEqual( const QLinkedList< Okular::NormalizedPoint > &points1, const QLinkedList< Okular::NormalizedPoint > &points2 ); | ||
34 | 34 | | |||
35 | /* | 35 | /* | ||
36 | * The AnnotationDisposeWatcher class provides a static disposeAnnotation function | 36 | * The AnnotationDisposeWatcher class provides a static disposeAnnotation function | ||
37 | * that may be assigned to an annotation with Annotation::setDisposeDataFunction in order to | 37 | * that may be assigned to an annotation with Annotation::setDisposeDataFunction in order to | ||
38 | * determine when an annotation has been disposed of. | 38 | * determine when an annotation has been disposed of. | ||
39 | */ | 39 | */ | ||
40 | class AnnotationDisposeWatcher { | 40 | class AnnotationDisposeWatcher { | ||
41 | private: | 41 | private: | ||
Show All 10 Lines |