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
Marco Bubke
flatpak-qt-creator
Commits
900ec2aa
Commit
900ec2aa
authored
May 15, 2009
by
Daniel Molkentin
Browse files
welcome screen: fix tip cycling
parent
01cc5b48
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/coreplugin/welcomemode.cpp
View file @
900ec2aa
...
...
@@ -314,13 +314,15 @@ void WelcomeMode::slotFeedback()
void
WelcomeMode
::
slotNextTip
()
{
QStringList
tips
=
tipsOfTheDay
();
m_d
->
ui
.
didYouKnowTextBrowser
->
setText
(
tips
.
at
((
++
m_d
->
currentTip
)
%
tips
.
count
()));
m_d
->
currentTip
=
((
m_d
->
currentTip
+
1
)
%
tips
.
count
());
m_d
->
ui
.
didYouKnowTextBrowser
->
setText
(
tips
.
at
(
m_d
->
currentTip
));
}
void
WelcomeMode
::
slotPrevTip
()
{
QStringList
tips
=
tipsOfTheDay
();
m_d
->
ui
.
didYouKnowTextBrowser
->
setText
(
tips
.
at
((
--
m_d
->
currentTip
)
%
tips
.
count
()));
m_d
->
currentTip
=
tips
.
count
()
-
((
m_d
->
currentTip
-
1
)
%
tips
.
count
());
m_d
->
ui
.
didYouKnowTextBrowser
->
setText
(
tips
.
at
(
m_d
->
currentTip
));
}
QStringList
WelcomeMode
::
tipsOfTheDay
()
...
...
Write
Preview
Supports
Markdown
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