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
ad58d75e
Commit
ad58d75e
authored
Jan 15, 2015
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add dbus supprt
parent
b33ca19e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
src/CMakeLists.txt
src/CMakeLists.txt
+1
-1
src/main.cpp
src/main.cpp
+5
-1
No files found.
src/CMakeLists.txt
View file @
ad58d75e
...
...
@@ -17,7 +17,7 @@ add_executable( kshisen ${kshisen_SRCS} )
include_directories
(
${
PHONON_INCLUDES
}
)
target_link_libraries
(
kshisen Qt5::Gui KF5::CoreAddons KF5::KIOWidgets KF5::DNSSD Phonon::phonon4qt5
KF5::XmlGui KF5::I18n KF5KDEGames KF5KDEGamesPrivate KF5KMahjongglib
)
KF5::XmlGui KF5::I18n KF5KDEGames KF5KDEGamesPrivate KF5KMahjongglib
KF5::DBusAddons
)
install
(
TARGETS kshisen
${
INSTALL_TARGETS_DEFAULT_ARGS
}
)
...
...
src/main.cpp
View file @
ad58d75e
...
...
@@ -28,12 +28,15 @@
#include <QCommandLineParser>
#include <QApplication>
#include <KLocalizedString>
#include <KDBusService>
#include <QCommandLineParser>
static
const
char
description
[]
=
I18N_NOOP
(
"A KDE game similar to Mahjongg"
);
int
main
(
int
argc
,
char
**
argv
)
{
QApplication
a
(
argc
,
argv
);
KAboutData
aboutData
(
"kshisen"
,
i18n
(
"Shisen-Sho"
),
KSHISEN_VERSION
" #"
KSHISEN_COMMIT
,
i18n
(
description
),
KAboutLicense
::
GPL
,
i18n
(
"(c) 1997, Mario Weilguni"
));
...
...
@@ -44,7 +47,6 @@ int main(int argc, char **argv)
aboutData
.
addCredit
(
i18n
(
"Mauricio Piacentini"
),
i18n
(
"KMahjonggLib integration for KDE4"
),
"mauricio@tabuleiro.com"
);
aboutData
.
addCredit
(
i18n
(
"Jason Lane"
),
i18n
(
"Added 'tiles removed' counter<br/>Tile smooth-scaling and window resizing"
),
"jglane@btopenworld.com"
);
aboutData
.
addCredit
(
i18n
(
"Thanks also to everyone who should be listed here but is not!"
));
QApplication
a
(
argc
,
argv
);
QCommandLineParser
parser
;
KAboutData
::
setApplicationData
(
aboutData
);
parser
.
addVersionOption
();
...
...
@@ -63,6 +65,8 @@ int main(int argc, char **argv)
migrate
.
setUiFiles
(
QStringList
()
<<
QLatin1String
(
"kshisenui.rc"
));
migrate
.
migrate
();
KDBusService
service
;
App
*
app
=
new
App
();
app
->
show
();
return
a
.
exec
();
...
...
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