forked from openkylin/qt5-ukui-platformtheme
屏蔽cura软件
This commit is contained in:
parent
aff805d377
commit
740976ae2f
|
@ -0,0 +1,4 @@
|
||||||
|
debian/tmp/usr/lib/x86_64-linux-gnu/qt5/plugins/styles/libqt5-style-ukui.so
|
||||||
|
debian/tmp/usr/share/qt5-ukui-platformtheme/themeconfig/classical.json
|
||||||
|
debian/tmp/usr/share/qt5-ukui-platformtheme/themeconfig/default.json
|
||||||
|
debian/tmp/usr/share/qt5-ukui-platformtheme/themeconfig/fashion.json
|
|
@ -175,7 +175,7 @@ Qt5UKUIPlatformTheme::Qt5UKUIPlatformTheme(const QStringList &args)
|
||||||
// if (QFile::exists(QString("%1/kf5/kirigami/org.kylin.style.so").arg(QT_PLUGIN_INSTALL_DIRS))) {
|
// if (QFile::exists(QString("%1/kf5/kirigami/org.kylin.style.so").arg(QT_PLUGIN_INSTALL_DIRS))) {
|
||||||
// QQuickStyle::setStyle("org.kylin.style");
|
// QQuickStyle::setStyle("org.kylin.style");
|
||||||
// }
|
// }
|
||||||
if(qApp->inherits("QApplication") == true) {
|
if(qApp->inherits("QApplication") == true && qAppName() != "cura") {
|
||||||
QQuickStyle::setStyle("org.ukui.style");
|
QQuickStyle::setStyle("org.ukui.style");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -211,6 +211,9 @@ const QFont *Qt5UKUIPlatformTheme::font(Font type) const
|
||||||
|
|
||||||
QVariant Qt5UKUIPlatformTheme::themeHint(ThemeHint hint) const
|
QVariant Qt5UKUIPlatformTheme::themeHint(ThemeHint hint) const
|
||||||
{
|
{
|
||||||
|
if(qAppName() == "cura")
|
||||||
|
return QPlatformTheme::themeHint(hint);
|
||||||
|
|
||||||
switch (hint) {
|
switch (hint) {
|
||||||
case QPlatformTheme::StyleNames:{
|
case QPlatformTheme::StyleNames:{
|
||||||
// qDebug() << "Qt5UKUIPlatformTheme....";
|
// qDebug() << "Qt5UKUIPlatformTheme....";
|
||||||
|
|
Loading…
Reference in New Issue