From e3d24d1890fd16c0e067eeddc31b974c94bd54f5 Mon Sep 17 00:00:00 2001 From: Evgenii Alekseev Date: Wed, 11 Dec 2024 17:09:10 +0200 Subject: [PATCH] fix: disable tooltip painting for now, because it causes error during png rendering in qt --- sources/awesome-widget/package/contents/ui/main.qml | 2 +- sources/awesome-widget/plugin/awdataaggregator.h | 1 - sources/awesomewidgets/graphicalitem.cpp | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/sources/awesome-widget/package/contents/ui/main.qml b/sources/awesome-widget/package/contents/ui/main.qml index f0d5356..28a0e38 100644 --- a/sources/awesome-widget/package/contents/ui/main.qml +++ b/sources/awesome-widget/package/contents/ui/main.qml @@ -130,7 +130,7 @@ PlasmoidItem { Plasmoid.userConfiguringChanged(false) // connect data awKeys.needTextToBeUpdated.connect(needTextUpdate) - awKeys.needToolTipToBeUpdated.connect(needToolTipUpdate) + //awKeys.needToolTipToBeUpdated.connect(needToolTipUpdate) // check updates if required if (plasmoid.configuration.checkUpdates) return awActions.checkUpdates(false) } diff --git a/sources/awesome-widget/plugin/awdataaggregator.h b/sources/awesome-widget/plugin/awdataaggregator.h index 5b126ff..3afa55b 100644 --- a/sources/awesome-widget/plugin/awdataaggregator.h +++ b/sources/awesome-widget/plugin/awdataaggregator.h @@ -17,7 +17,6 @@ #pragma once -#include #include diff --git a/sources/awesomewidgets/graphicalitem.cpp b/sources/awesomewidgets/graphicalitem.cpp index 36c180f..118fc01 100644 --- a/sources/awesomewidgets/graphicalitem.cpp +++ b/sources/awesomewidgets/graphicalitem.cpp @@ -436,7 +436,7 @@ int GraphicalItem::showConfiguration(QWidget *_parent, const QVariant &_args) auto ui = new Ui::GraphicalItem(); ui->setupUi(dialog); - connect(ui->checkBox_custom, &QCheckBox::stateChanged, [ui](const int state) { changeValue(ui, state); }); + connect(ui->checkBox_custom, &QCheckBox::checkStateChanged, [ui](const int state) { changeValue(ui, state); }); connect(ui->comboBox_type, &QComboBox::currentIndexChanged, [ui](const int state) { changeCountState(ui, state); }); connect(ui->toolButton_activeColor, &QToolButton::clicked, [this, ui]() { changeColor(ui); }); connect(ui->toolButton_inactiveColor, &QToolButton::clicked, [this, ui]() { changeColor(ui); }); @@ -472,7 +472,7 @@ int GraphicalItem::showConfiguration(QWidget *_parent, const QVariant &_args) // update UI emit(ui->comboBox_type->currentIndexChanged(ui->comboBox_type->currentIndex())); - emit(ui->checkBox_custom->stateChanged(ui->checkBox_custom->checkState())); + emit(ui->checkBox_custom->checkStateChanged(ui->checkBox_custom->checkState())); int ret = dialog->exec(); if (ret == 1) {