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
KNetWalk
Commits
800f644e
Commit
800f644e
authored
Jul 21, 2022
by
oldherl oh
Browse files
use KGameClock::FlexibleHourMinSec to show hour when needed
parent
4c5c5f55
Pipeline
#207552
failed with stage
in 2 minutes and 23 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
800f644e
...
...
@@ -31,7 +31,7 @@ find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
XmlGui
)
find_package
(
KF5KDEGames
4.9.0
REQUIRED
)
find_package
(
KF5KDEGames
7.3.1
REQUIRED
)
find_package
(
Qt
${
QT_MAJOR_VERSION
}
Test
${
QT_MIN_VERSION
}
QUIET
)
set_package_properties
(
Qt
${
QT_MAJOR_VERSION
}
Test PROPERTIES
...
...
src/mainwindow.cpp
View file @
800f644e
...
...
@@ -107,7 +107,7 @@ MainWindow::MainWindow(QWidget *parent)
setAutoSaveSettings
();
m_gameClock
=
new
KGameClock
(
this
,
KGameClock
::
MinSec
Only
);
m_gameClock
=
new
KGameClock
(
this
,
KGameClock
::
FlexibleHour
MinSec
);
connect
(
m_gameClock
,
&
KGameClock
::
timeChanged
,
this
,
&
MainWindow
::
updateStatusBar
);
m_soundStart
=
new
KgSound
(
QStandardPaths
::
locate
(
QStandardPaths
::
AppDataLocation
,
QStringLiteral
(
"sounds/start.wav"
)),
this
);
...
...
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