屏蔽cura软件

This commit is contained in:
tanjing 2024-01-22 10:01:15 +08:00
parent aff805d377
commit 740976ae2f
2 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -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))) {
// QQuickStyle::setStyle("org.kylin.style");
// }
if(qApp->inherits("QApplication") == true) {
if(qApp->inherits("QApplication") == true && qAppName() != "cura") {
QQuickStyle::setStyle("org.ukui.style");
}
}
@ -211,6 +211,9 @@ const QFont *Qt5UKUIPlatformTheme::font(Font type) const
QVariant Qt5UKUIPlatformTheme::themeHint(ThemeHint hint) const
{
if(qAppName() == "cura")
return QPlatformTheme::themeHint(hint);
switch (hint) {
case QPlatformTheme::StyleNames:{
// qDebug() << "Qt5UKUIPlatformTheme....";