Changeset View
Changeset View
Standalone View
Standalone View
core/textpage.h
Show First 20 Lines • Show All 131 Lines • ▼ Show 20 Line(s) | 97 | public: | |||
---|---|---|---|---|---|
132 | * | 132 | * | ||
133 | * @param id An unique id for this search. | 133 | * @param id An unique id for this search. | ||
134 | * @param text The search text. | 134 | * @param text The search text. | ||
135 | * @param direction The direction of the search (@ref SearchDirection) | 135 | * @param direction The direction of the search (@ref SearchDirection) | ||
136 | * @param caseSensitivity If Qt::CaseSensitive, the search is case sensitive; otherwise | 136 | * @param caseSensitivity If Qt::CaseSensitive, the search is case sensitive; otherwise | ||
137 | * the search is case insensitive. | 137 | * the search is case insensitive. | ||
138 | * @param lastRect If 0 the search starts at the beginning of the page, otherwise | 138 | * @param lastRect If 0 the search starts at the beginning of the page, otherwise | ||
139 | * right/below the coordinates of the given rect. | 139 | * right/below the coordinates of the given rect. | ||
140 | * @param wholeWords If true, it will search for whole words only | ||||
140 | */ | 141 | */ | ||
141 | RegularAreaRect* findText( int id, const QString &text, SearchDirection direction, | 142 | RegularAreaRect* findText( int id, const QString &text, SearchDirection direction, | ||
143 | Qt::CaseSensitivity caseSensitivity, const RegularAreaRect *lastRect, | ||||
144 | const bool wholeWords ); | ||||
145 | // To merge with wholeWords = false | ||||
146 | RegularAreaRect* findText( int id, const QString &text, SearchDirection direction, | ||||
142 | Qt::CaseSensitivity caseSensitivity, const RegularAreaRect *lastRect ); | 147 | Qt::CaseSensitivity caseSensitivity, const RegularAreaRect *lastRect ); | ||
143 | 148 | | |||
aacid: This breaks binary compatibility https://community.kde. | |||||
144 | /** | 149 | /** | ||
145 | * Text extraction function. | 150 | * Text extraction function. | ||
146 | * | 151 | * | ||
147 | * Returns: | 152 | * Returns: | ||
148 | * - a null string if @p rect is a valid pointer to a null area | 153 | * - a null string if @p rect is a valid pointer to a null area | ||
149 | * - the whole page text if @p rect is a null pointer | 154 | * - the whole page text if @p rect is a null pointer | ||
150 | * - the text which is included by rectangular area @p rect otherwise | 155 | * - the text which is included by rectangular area @p rect otherwise | ||
151 | * Uses AnyPixelTextAreaInclusionBehaviour | 156 | * Uses AnyPixelTextAreaInclusionBehaviour | ||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |
This breaks binary compatibility https://community.kde.org/Policies/Binary_Compatibility_Issues_With_C%2B%2B
What you want is adding a new function with the new param and make the old one call the new.
You have the same problem in the core/*.h files.