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
KShisen
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
Games
KShisen
Commits
21b1c8e8
Commit
21b1c8e8
authored
Sep 08, 2019
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GIT_SILENT: QLatin1Literal->QLatin1String
parent
689dd7cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
src/app.cpp
src/app.cpp
+17
-17
No files found.
src/app.cpp
View file @
21b1c8e8
...
...
@@ -223,26 +223,26 @@ void App::hint()
void
App
::
updateItems
()
{
if
(
m_board
->
isOver
())
{
actionCollection
()
->
action
(
QLatin1
Literal
(
KStandardGameAction
::
name
(
KStandardGameAction
::
Undo
)))
->
setEnabled
(
false
);
actionCollection
()
->
action
(
QLatin1
Literal
(
KStandardGameAction
::
name
(
KStandardGameAction
::
Redo
)))
->
setEnabled
(
false
);
actionCollection
()
->
action
(
QLatin1
Literal
(
KStandardGameAction
::
name
(
KStandardGameAction
::
Pause
)))
->
setEnabled
(
false
);
actionCollection
()
->
action
(
QLatin1
Literal
(
KStandardGameAction
::
name
(
KStandardGameAction
::
Hint
)))
->
setEnabled
(
false
);
actionCollection
()
->
action
(
QLatin1
String
(
KStandardGameAction
::
name
(
KStandardGameAction
::
Undo
)))
->
setEnabled
(
false
);
actionCollection
()
->
action
(
QLatin1
String
(
KStandardGameAction
::
name
(
KStandardGameAction
::
Redo
)))
->
setEnabled
(
false
);
actionCollection
()
->
action
(
QLatin1
String
(
KStandardGameAction
::
name
(
KStandardGameAction
::
Pause
)))
->
setEnabled
(
false
);
actionCollection
()
->
action
(
QLatin1
String
(
KStandardGameAction
::
name
(
KStandardGameAction
::
Hint
)))
->
setEnabled
(
false
);
}
else
if
(
m_board
->
isPaused
())
{
actionCollection
()
->
action
(
QLatin1
Literal
(
KStandardGameAction
::
name
(
KStandardGameAction
::
Undo
)))
->
setEnabled
(
false
);
actionCollection
()
->
action
(
QLatin1
Literal
(
KStandardGameAction
::
name
(
KStandardGameAction
::
Redo
)))
->
setEnabled
(
false
);
actionCollection
()
->
action
(
QLatin1
Literal
(
KStandardGameAction
::
name
(
KStandardGameAction
::
Restart
)))
->
setEnabled
(
false
);
actionCollection
()
->
action
(
QLatin1
Literal
(
KStandardGameAction
::
name
(
KStandardGameAction
::
Pause
)))
->
setChecked
(
true
);
actionCollection
()
->
action
(
QLatin1
Literal
(
KStandardGameAction
::
name
(
KStandardGameAction
::
Hint
)))
->
setEnabled
(
false
);
actionCollection
()
->
action
(
QLatin1
String
(
KStandardGameAction
::
name
(
KStandardGameAction
::
Undo
)))
->
setEnabled
(
false
);
actionCollection
()
->
action
(
QLatin1
String
(
KStandardGameAction
::
name
(
KStandardGameAction
::
Redo
)))
->
setEnabled
(
false
);
actionCollection
()
->
action
(
QLatin1
String
(
KStandardGameAction
::
name
(
KStandardGameAction
::
Restart
)))
->
setEnabled
(
false
);
actionCollection
()
->
action
(
QLatin1
String
(
KStandardGameAction
::
name
(
KStandardGameAction
::
Pause
)))
->
setChecked
(
true
);
actionCollection
()
->
action
(
QLatin1
String
(
KStandardGameAction
::
name
(
KStandardGameAction
::
Hint
)))
->
setEnabled
(
false
);
}
else
if
(
m_board
->
isStuck
())
{
actionCollection
()
->
action
(
QLatin1
Literal
(
KStandardGameAction
::
name
(
KStandardGameAction
::
Pause
)))
->
setEnabled
(
false
);
actionCollection
()
->
action
(
QLatin1
Literal
(
KStandardGameAction
::
name
(
KStandardGameAction
::
Hint
)))
->
setEnabled
(
false
);
actionCollection
()
->
action
(
QLatin1
String
(
KStandardGameAction
::
name
(
KStandardGameAction
::
Pause
)))
->
setEnabled
(
false
);
actionCollection
()
->
action
(
QLatin1
String
(
KStandardGameAction
::
name
(
KStandardGameAction
::
Hint
)))
->
setEnabled
(
false
);
}
else
{
actionCollection
()
->
action
(
QLatin1
Literal
(
KStandardGameAction
::
name
(
KStandardGameAction
::
Undo
)))
->
setEnabled
(
m_board
->
canUndo
());
actionCollection
()
->
action
(
QLatin1
Literal
(
KStandardGameAction
::
name
(
KStandardGameAction
::
Redo
)))
->
setEnabled
(
m_board
->
canRedo
());
actionCollection
()
->
action
(
QLatin1
Literal
(
KStandardGameAction
::
name
(
KStandardGameAction
::
Restart
)))
->
setEnabled
(
m_board
->
canUndo
());
actionCollection
()
->
action
(
QLatin1
Literal
(
KStandardGameAction
::
name
(
KStandardGameAction
::
Pause
)))
->
setEnabled
(
true
);
actionCollection
()
->
action
(
QLatin1
Literal
(
KStandardGameAction
::
name
(
KStandardGameAction
::
Pause
)))
->
setChecked
(
false
);
actionCollection
()
->
action
(
QLatin1
Literal
(
KStandardGameAction
::
name
(
KStandardGameAction
::
Hint
)))
->
setEnabled
(
true
);
actionCollection
()
->
action
(
QLatin1
String
(
KStandardGameAction
::
name
(
KStandardGameAction
::
Undo
)))
->
setEnabled
(
m_board
->
canUndo
());
actionCollection
()
->
action
(
QLatin1
String
(
KStandardGameAction
::
name
(
KStandardGameAction
::
Redo
)))
->
setEnabled
(
m_board
->
canRedo
());
actionCollection
()
->
action
(
QLatin1
String
(
KStandardGameAction
::
name
(
KStandardGameAction
::
Restart
)))
->
setEnabled
(
m_board
->
canUndo
());
actionCollection
()
->
action
(
QLatin1
String
(
KStandardGameAction
::
name
(
KStandardGameAction
::
Pause
)))
->
setEnabled
(
true
);
actionCollection
()
->
action
(
QLatin1
String
(
KStandardGameAction
::
name
(
KStandardGameAction
::
Pause
)))
->
setChecked
(
false
);
actionCollection
()
->
action
(
QLatin1
String
(
KStandardGameAction
::
name
(
KStandardGameAction
::
Hint
)))
->
setEnabled
(
true
);
}
}
...
...
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