Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
KTeaTime
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Utilities
KTeaTime
Commits
c32c54a2
Commit
c32c54a2
authored
Sep 21, 2019
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove deprecated method
parent
891cad09
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
src/toplevel.cpp
src/toplevel.cpp
+9
-4
No files found.
src/toplevel.cpp
View file @
c32c54a2
...
...
@@ -53,10 +53,15 @@ TopLevel::TopLevel(const KAboutData *aboutData, const QString &icon, QWidget *pa
KConfigGroup
tealistGroup
(
config
,
"Tealist"
);
if
(
tealistGroup
.
exists
()
)
{
QString
key
,
time
;
for
(
unsigned
index
=
0
;
tealistGroup
.
hasKey
(
time
.
sprintf
(
"Tea%d Time"
,
index
))
&&
tealistGroup
.
hasKey
(
key
.
sprintf
(
"Tea%d Name"
,
index
));
++
index
)
{
if
(
int
temp
=
(
tealistGroup
.
readEntry
(
time
,
QString
()
)
).
toUInt
()
)
{
m_tealist
.
append
(
Tea
(
tealistGroup
.
readEntry
(
key
,
i18n
(
"Unknown Tea"
)
),
temp
)
);
for
(
unsigned
index
=
0
;;
++
index
)
{
const
QString
time
=
QString
::
asprintf
(
"Tea%d Time"
,
index
);
const
QString
key
=
QString
::
asprintf
(
"Tea%d Name"
,
index
);
if
(
tealistGroup
.
hasKey
(
time
)
&&
tealistGroup
.
hasKey
(
key
))
{
if
(
int
temp
=
(
tealistGroup
.
readEntry
(
time
,
QString
()
)
).
toUInt
()
)
{
m_tealist
.
append
(
Tea
(
tealistGroup
.
readEntry
(
key
,
i18n
(
"Unknown Tea"
)
),
temp
)
);
}
}
else
{
break
;
}
}
}
...
...
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