Commit 11ce83ce authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

kdelibs4support--

parent c3144951
......@@ -10,7 +10,6 @@ find_package(KF5 REQUIRED COMPONENTS
Config
ItemModels
WidgetsAddons
WindowSystem
Config
DBusAddons
DNSSD
......@@ -22,13 +21,10 @@ find_package(KF5 REQUIRED COMPONENTS
ItemViews
IconThemes
Completion
JobWidgets
TextWidgets
XmlGui
KIO
NotifyConfig
NewStuff
KDELibs4Support)
)
find_package(KF5KDEGames 4.9.0 REQUIRED)
......@@ -68,7 +64,7 @@ kconfig_add_kcfg_files(kreversi_SRCS preferences.kcfgc)
add_executable(kreversi ${kreversi_SRCS})
target_link_libraries(kreversi Qt5::Svg Qt5::Declarative KF5::Declarative KF5::XmlGui KF5::TextWidgets KF5KDEGames KF5::Completion KF5::KDELibs4Support KF5::DBusAddons)
target_link_libraries(kreversi Qt5::Svg Qt5::Declarative KF5::Declarative KF5::XmlGui KF5::TextWidgets KF5KDEGames KF5::Completion KF5::DBusAddons)
install(TARGETS kreversi ${INSTALL_TARGETS_DEFAULT_ARGS} )
......
......@@ -20,9 +20,10 @@
#include <kreversiview.h>
#include <KLocalizedString>
#include <KStandardDirs>
#include <colorscheme.h>
#include <QStandardPaths>
KReversiView::KReversiView(KReversiGame* game, QWidget *parent, KgThemeProvider *provider) :
KgDeclarativeView(parent), m_delay(ANIMATION_SPEED_NORMAL), m_game(0),
......@@ -33,8 +34,7 @@ KReversiView::KReversiView(KReversiGame* game, QWidget *parent, KgThemeProvider
qmlRegisterType<ColorScheme>("ColorScheme", 1, 0, "ColorScheme");
QString path =
KStandardDirs::locate("appdata", QLatin1String("qml/Table.qml"));
QString path = QStandardPaths::locate(QStandardPaths::DataLocation, QLatin1String("qml/Table.qml"));
setSource(QUrl::fromLocalFile(path));
m_qml_root = (QObject*) rootObject();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment