54 #include <QCloseEvent>
56 #include <QPushButton>
59 #include "../vmisc/vabstractapplication.h"
60 #include "../vmisc/vcommonsettings.h"
61 #include "ui_dialogundo.h"
69 qApp->Settings()->GetOsSeparator() ? setLocale(QLocale()) : setLocale(QLocale::c());
71 bool opening =
qApp->getOpeningPattern();
74 ui->pushButtonUndo->setDisabled(opening);
78 connect(
ui->pushButtonUndo, &QPushButton::clicked,
this, [
this]()
80 result = UndoButton::Undo;
84 connect(
ui->pushButtonFix, &QPushButton::clicked,
this, [
this]()
86 result = UndoButton::Fix;
91 setCursor(Qt::ArrowCursor);
virtual ~DialogUndo() Q_DECL_OVERRIDE
DialogUndo(QWidget *parent=nullptr)
virtual void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE