Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Discover
Commits
99dcd465
Commit
99dcd465
authored
Dec 10, 2020
by
Laurent Montel
Browse files
operator+/- is disabled for QFlags in qt6
parent
27ea0cb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
libdiscover/resources/ResourcesModel.cpp
View file @
99dcd465
...
...
@@ -87,7 +87,7 @@ void ResourcesModel::init(bool load)
m_updateAction
=
new
QAction
(
this
);
m_updateAction
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"system-software-update"
)));
m_updateAction
->
setText
(
i18nc
(
"@action Checks the Internet for updates"
,
"Check for Updates"
));
m_updateAction
->
setShortcut
(
QKeySequence
(
Qt
::
CTRL
+
Qt
::
Key_R
));
m_updateAction
->
setShortcut
(
QKeySequence
(
Qt
::
CTRL
|
Qt
::
Key_R
));
connect
(
this
,
&
ResourcesModel
::
fetchingChanged
,
m_updateAction
,
[
this
](
bool
fetching
)
{
m_updateAction
->
setEnabled
(
!
fetching
);
m_fetchingUpdatesProgress
.
reevaluate
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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