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
Games
KMines
Commits
a4000b61
Commit
a4000b61
authored
Jul 18, 2022
by
oldherl oh
Browse files
use KGameClock::FlexibleHourMinSec to show hour when needed
parent
d14a0749
Pipeline
#207224
passed with stage
in 1 minute and 45 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
a4000b61
...
...
@@ -46,7 +46,7 @@ set_package_properties(KF5DocTools PROPERTIES DESCRIPTION
TYPE OPTIONAL
)
find_package
(
KF5KDEGames 7.3.
0
REQUIRED
)
find_package
(
KF5KDEGames 7.3.
1
REQUIRED
)
add_definitions
(
-DQT_DISABLE_DEPRECATED_BEFORE=0x050F00
...
...
src/mainwindow.cpp
View file @
a4000b61
...
...
@@ -95,7 +95,7 @@ KMinesMainWindow::KMinesMainWindow()
QGraphicsView
::
DontAdjustForAntialiasing
);
m_gameClock
=
new
KGameClock
(
this
,
KGameClock
::
MinSec
Only
);
m_gameClock
=
new
KGameClock
(
this
,
KGameClock
::
FlexibleHour
MinSec
);
connect
(
m_gameClock
,
&
KGameClock
::
timeChanged
,
this
,
&
KMinesMainWindow
::
advanceTime
);
mineLabel
->
setText
(
i18n
(
"Mines: 0/0"
));
...
...
oldherl oh
@oldherl
mentioned in commit
b6c99ae9
·
Jul 20, 2022
mentioned in commit
b6c99ae9
mentioned in commit b6c99ae9dbfea9fae9feb904f631914e3ada3a2b
Toggle commit list
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