mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Animate search and replace widget when close with the button of the widget
This commit is contained in:
@@ -31,6 +31,7 @@
|
|||||||
#include "replaceadvanceddialog.h"
|
#include "replaceadvanceddialog.h"
|
||||||
#include "dynamicelementtextitem.h"
|
#include "dynamicelementtextitem.h"
|
||||||
#include "elementtextitemgroup.h"
|
#include "elementtextitemgroup.h"
|
||||||
|
#include "QWidgetAnimation/qwidgetanimation.h"
|
||||||
|
|
||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
|
|
||||||
@@ -796,8 +797,16 @@ QStringList SearchAndReplaceWidget::searchTerms(Conductor *conductor)
|
|||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SearchAndReplaceWidget::on_m_quit_button_clicked() {
|
/**
|
||||||
this->setHidden(true);
|
* @brief SearchAndReplaceWidget::on_m_quit_button_clicked
|
||||||
|
*/
|
||||||
|
void SearchAndReplaceWidget::on_m_quit_button_clicked()
|
||||||
|
{
|
||||||
|
if (auto animator = this->findChild<QWidgetAnimation *>("search and replace animator")) {
|
||||||
|
animator->setHidden(!this->isHidden());
|
||||||
|
} else {
|
||||||
|
this->setHidden(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void SearchAndReplaceWidget::on_m_advanced_pb_toggled(bool checked) {
|
void SearchAndReplaceWidget::on_m_advanced_pb_toggled(bool checked) {
|
||||||
@@ -806,7 +815,7 @@ void SearchAndReplaceWidget::on_m_advanced_pb_toggled(bool checked) {
|
|||||||
|
|
||||||
void SearchAndReplaceWidget::on_m_tree_widget_itemDoubleClicked(QTreeWidgetItem *item, int column)
|
void SearchAndReplaceWidget::on_m_tree_widget_itemDoubleClicked(QTreeWidgetItem *item, int column)
|
||||||
{
|
{
|
||||||
Q_UNUSED(column);
|
Q_UNUSED(column)
|
||||||
|
|
||||||
if (m_diagram_hash.keys().contains(item))
|
if (m_diagram_hash.keys().contains(item))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user