Commit 5dbd1ed7 authored by Lars Knoll's avatar Lars Knoll Committed by Jani Heikkinen
Browse files

Fix signature of new methods


Don't return a const QString &, return the QString by value. This
is still broken for some of the older methods, but let's not add
to it.

Change-Id: Ic5cabb1b89eda0fcf678dbe175963e03109e5c2c
Reviewed-by: default avatarFrederik Gladhorn <frederik.gladhorn@theqtcompany.com>
Showing with 12 additions and 12 deletions
...@@ -2743,7 +2743,7 @@ const QString &QAccessibleActionInterface::toggleAction() ...@@ -2743,7 +2743,7 @@ const QString &QAccessibleActionInterface::toggleAction()
Returns the name of the scroll left default action. Returns the name of the scroll left default action.
\sa actionNames(), localizedActionName() \sa actionNames(), localizedActionName()
*/ */
const QString &QAccessibleActionInterface::scrollLeftAction() QString QAccessibleActionInterface::scrollLeftAction()
{ {
return accessibleActionStrings()->scrollLeftAction; return accessibleActionStrings()->scrollLeftAction;
} }
...@@ -2752,7 +2752,7 @@ const QString &QAccessibleActionInterface::scrollLeftAction() ...@@ -2752,7 +2752,7 @@ const QString &QAccessibleActionInterface::scrollLeftAction()
Returns the name of the scroll right default action. Returns the name of the scroll right default action.
\sa actionNames(), localizedActionName() \sa actionNames(), localizedActionName()
*/ */
const QString &QAccessibleActionInterface::scrollRightAction() QString QAccessibleActionInterface::scrollRightAction()
{ {
return accessibleActionStrings()->scrollRightAction; return accessibleActionStrings()->scrollRightAction;
} }
...@@ -2761,7 +2761,7 @@ const QString &QAccessibleActionInterface::scrollRightAction() ...@@ -2761,7 +2761,7 @@ const QString &QAccessibleActionInterface::scrollRightAction()
Returns the name of the scroll up default action. Returns the name of the scroll up default action.
\sa actionNames(), localizedActionName() \sa actionNames(), localizedActionName()
*/ */
const QString &QAccessibleActionInterface::scrollUpAction() QString QAccessibleActionInterface::scrollUpAction()
{ {
return accessibleActionStrings()->scrollUpAction; return accessibleActionStrings()->scrollUpAction;
} }
...@@ -2770,7 +2770,7 @@ const QString &QAccessibleActionInterface::scrollUpAction() ...@@ -2770,7 +2770,7 @@ const QString &QAccessibleActionInterface::scrollUpAction()
Returns the name of the scroll down default action. Returns the name of the scroll down default action.
\sa actionNames(), localizedActionName() \sa actionNames(), localizedActionName()
*/ */
const QString &QAccessibleActionInterface::scrollDownAction() QString QAccessibleActionInterface::scrollDownAction()
{ {
return accessibleActionStrings()->scrollDownAction; return accessibleActionStrings()->scrollDownAction;
} }
...@@ -2779,7 +2779,7 @@ const QString &QAccessibleActionInterface::scrollDownAction() ...@@ -2779,7 +2779,7 @@ const QString &QAccessibleActionInterface::scrollDownAction()
Returns the name of the previous page default action. Returns the name of the previous page default action.
\sa actionNames(), localizedActionName() \sa actionNames(), localizedActionName()
*/ */
const QString &QAccessibleActionInterface::previousPageAction() QString QAccessibleActionInterface::previousPageAction()
{ {
return accessibleActionStrings()->previousPageAction; return accessibleActionStrings()->previousPageAction;
} }
...@@ -2788,7 +2788,7 @@ const QString &QAccessibleActionInterface::previousPageAction() ...@@ -2788,7 +2788,7 @@ const QString &QAccessibleActionInterface::previousPageAction()
Returns the name of the next page default action. Returns the name of the next page default action.
\sa actionNames(), localizedActionName() \sa actionNames(), localizedActionName()
*/ */
const QString &QAccessibleActionInterface::nextPageAction() QString QAccessibleActionInterface::nextPageAction()
{ {
return accessibleActionStrings()->nextPageAction; return accessibleActionStrings()->nextPageAction;
} }
......
...@@ -636,12 +636,12 @@ public: ...@@ -636,12 +636,12 @@ public:
static const QString &showMenuAction(); static const QString &showMenuAction();
static const QString &setFocusAction(); static const QString &setFocusAction();
static const QString &toggleAction(); static const QString &toggleAction();
static const QString &scrollLeftAction(); static QString scrollLeftAction();
static const QString &scrollRightAction(); static QString scrollRightAction();
static const QString &scrollUpAction(); static QString scrollUpAction();
static const QString &scrollDownAction(); static QString scrollDownAction();
static const QString &nextPageAction(); static QString nextPageAction();
static const QString &previousPageAction(); static QString previousPageAction();
}; };
class Q_GUI_EXPORT QAccessibleImageInterface class Q_GUI_EXPORT QAccessibleImageInterface
......
Supports Markdown
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