Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Akregator
Commits
901cb617
Commit
901cb617
authored
Sep 29, 2020
by
Laurent Montel
😁
Browse files
Add missing Q_REQUIRED_RESULT
parent
1237e143
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/frame/frame.h
View file @
901cb617
...
...
@@ -45,7 +45,7 @@ public:
* all tabs but the main tab can be removed.
* Default is @c true
*/
bool
isRemovable
()
const
;
Q_REQUIRED_RESULT
bool
isRemovable
()
const
;
/**
* returns the URL of the embedded part
...
...
src/frame/framemanager.cpp
View file @
901cb617
...
...
@@ -260,7 +260,7 @@ void FrameManager::saveProperties(KConfigGroup &config)
// No need to save the main frame
Frame
*
currentFrame
=
i
.
value
();
if
(
currentFrame
&&
qobject_cast
<
WebEngineFrame
*>
(
currentFrame
))
{
QString
newPrefix
=
QLatin1Char
(
'T'
)
+
QString
::
number
(
i
.
key
());
const
QString
newPrefix
=
QLatin1Char
(
'T'
)
+
QString
::
number
(
i
.
key
());
if
(
currentFrame
->
saveConfig
(
config
,
newPrefix
+
QLatin1Char
(
'_'
)))
{
strlst
.
append
(
newPrefix
);
if
(
currentFrame
==
m_currentFrame
)
{
...
...
src/frame/mainframe.h
View file @
901cb617
...
...
@@ -22,7 +22,7 @@ public:
Q_REQUIRED_RESULT
QUrl
url
()
const
override
;
bool
openUrl
(
const
OpenUrlRequest
&
)
override
Q_REQUIRED_RESULT
bool
openUrl
(
const
OpenUrlRequest
&
)
override
{
return
false
;
}
...
...
src/frame/webengine/webengineframe.h
View file @
901cb617
...
...
@@ -21,10 +21,10 @@ public:
explicit
WebEngineFrame
(
KActionCollection
*
ac
,
QWidget
*
parent
=
nullptr
);
~
WebEngineFrame
()
override
;
QUrl
url
()
const
override
;
bool
openUrl
(
const
OpenUrlRequest
&
request
)
override
;
Q_REQUIRED_RESULT
QUrl
url
()
const
override
;
Q_REQUIRED_RESULT
bool
openUrl
(
const
OpenUrlRequest
&
request
)
override
;
void
loadConfig
(
const
KConfigGroup
&
,
const
QString
&
)
override
;
bool
saveConfig
(
KConfigGroup
&
,
const
QString
&
)
override
;
Q_REQUIRED_RESULT
bool
saveConfig
(
KConfigGroup
&
,
const
QString
&
)
override
;
Q_REQUIRED_RESULT
qreal
zoomFactor
()
const
override
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment