mirror of
https://github.com/KDE/kasts.git
synced 2024-12-23 23:10:53 +01:00
Use material style on android
This commit is contained in:
parent
db30f159c4
commit
b412325219
@ -13,7 +13,7 @@ set(alligator_SRCS
|
||||
kconfig_add_kcfg_files(alligator_SRCS alligatorsettings.kcfgc GENERATE_MOC)
|
||||
|
||||
add_executable(alligator ${alligator_SRCS})
|
||||
target_link_libraries(alligator PRIVATE Qt5::Core Qt5::Qml Qt5::Quick Qt5::Sql KF5::Syndication KF5::CoreAddons KF5::ConfigGui KF5::I18n)
|
||||
target_link_libraries(alligator PRIVATE Qt5::Core Qt5::Qml Qt5::Quick Qt5::QuickControls2 Qt5::Sql KF5::Syndication KF5::CoreAddons KF5::ConfigGui KF5::I18n)
|
||||
|
||||
if(ANDROID)
|
||||
target_link_libraries(alligator PRIVATE
|
||||
|
@ -14,6 +14,7 @@
|
||||
#include <QQmlApplicationEngine>
|
||||
#include <QQmlContext>
|
||||
#include <QQuickView>
|
||||
#include <QQuickStyle>
|
||||
|
||||
#include <KAboutData>
|
||||
#include <KLocalizedContext>
|
||||
@ -32,6 +33,7 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
#ifdef Q_OS_ANDROID
|
||||
QGuiApplication app(argc, argv);
|
||||
QQuickStyle::setStyle(QStringLiteral("Material"));
|
||||
#else
|
||||
QApplication app(argc, argv);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user