Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Akregator
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Wiki
Bugzilla
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PIM
Akregator
Commits
402f1e6d
Commit
402f1e6d
authored
3 months ago
by
Laurent Montel
Browse files
Options
Downloads
Patches
Plain Diff
Fix KLocalization::setupSpinBoxFormatString usage
parent
4bd39c87
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#755785
passed with stage
in 4 minutes and 25 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
configuration/akregator_config_archive.cpp
+2
-2
2 additions, 2 deletions
configuration/akregator_config_archive.cpp
configuration/settings_advanced.cpp
+1
-1
1 addition, 1 deletion
configuration/settings_advanced.cpp
src/feed/feedpropertiesdialog.cpp
+2
-2
2 additions, 2 deletions
src/feed/feedpropertiesdialog.cpp
with
5 additions
and
5 deletions
configuration/akregator_config_archive.cpp
+
2
−
2
View file @
402f1e6d
...
...
@@ -32,8 +32,8 @@ KCMAkregatorArchiveConfig::KCMAkregatorArchiveConfig(QObject *parent, const KPlu
connect
(
m_ui
.
rb_LimitArticleAge
,
&
QAbstractButton
::
toggled
,
m_ui
.
kcfg_MaxArticleAge
,
&
QWidget
::
setEnabled
);
#if KI18N_VERSION > QT_VERSION_CHECK(6, 5, 0)
KLocalization
::
setupSpinBoxFormatString
(
m_ui
.
kcfg_MaxArticleNumber
,
ki18ncp
(
"Limit feed archive size to:"
,
" article"
,
" articles"
));
KLocalization
::
setupSpinBoxFormatString
(
m_ui
.
kcfg_MaxArticleAge
,
ki18ncp
(
"Delete articles older than:"
,
" day"
,
" days"
));
KLocalization
::
setupSpinBoxFormatString
(
m_ui
.
kcfg_MaxArticleNumber
,
ki18ncp
(
"Limit feed archive size to:"
,
"
%v
article"
,
"
%v
articles"
));
KLocalization
::
setupSpinBoxFormatString
(
m_ui
.
kcfg_MaxArticleAge
,
ki18ncp
(
"Delete articles older than:"
,
"
%v
day"
,
"
%v
days"
));
#endif
m_archiveModeGroup
=
new
QButtonGroup
(
this
);
m_archiveModeGroup
->
addButton
(
m_ui
.
rb_KeepAllArticles
,
Settings
::
EnumArchiveMode
::
keepAllArticles
);
...
...
This diff is collapsed.
Click to expand it.
configuration/settings_advanced.cpp
+
1
−
1
View file @
402f1e6d
...
...
@@ -25,7 +25,7 @@ SettingsAdvanced::SettingsAdvanced(QWidget *parent)
connect
(
kcfg_UseMarkReadDelay
,
&
QCheckBox
::
toggled
,
kcfg_MarkReadDelay
,
&
QSpinBox
::
setEnabled
);
#if KI18N_VERSION > QT_VERSION_CHECK(6, 5, 0)
KLocalization
::
setupSpinBoxFormatString
(
kcfg_MarkReadDelay
,
ki18ncp
(
"Mark selected article read after"
,
" second"
,
" seconds"
));
KLocalization
::
setupSpinBoxFormatString
(
kcfg_MarkReadDelay
,
ki18ncp
(
"Mark selected article read after"
,
"
%v
second"
,
"
%v
seconds"
));
#endif
}
...
...
This diff is collapsed.
Click to expand it.
src/feed/feedpropertiesdialog.cpp
+
2
−
2
View file @
402f1e6d
...
...
@@ -113,8 +113,8 @@ FeedPropertiesDialog::FeedPropertiesDialog(QWidget *parent, const QString &name)
mFeedPropertiesWidget
->
updateComboBox
->
insertItem
(
FeedPropertiesWidget
::
Never
,
i18nc
(
"never fetch new articles"
,
"Never"
));
#if KI18N_VERSION > QT_VERSION_CHECK(6, 5, 0)
KLocalization
::
setupSpinBoxFormatString
(
mFeedPropertiesWidget
->
sb_maxArticleAge
,
ki18np
(
" day"
,
" days"
));
KLocalization
::
setupSpinBoxFormatString
(
mFeedPropertiesWidget
->
sb_maxArticleNumber
,
ki18np
(
" article"
,
" articles"
));
KLocalization
::
setupSpinBoxFormatString
(
mFeedPropertiesWidget
->
sb_maxArticleAge
,
ki18np
(
"
%v
day"
,
"
%v
days"
));
KLocalization
::
setupSpinBoxFormatString
(
mFeedPropertiesWidget
->
sb_maxArticleNumber
,
ki18np
(
"
%v
article"
,
"
%v
articles"
));
#endif
connect
(
mFeedPropertiesWidget
->
feedNameEdit
,
&
QLineEdit
::
textChanged
,
this
,
&
FeedPropertiesDialog
::
slotSetWindowTitle
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment