LogDoctor/logdoctor/modules/dialogs/boolean_dialog.h

44 lines
795 B
C
Raw Normal View History

#ifndef LOGDOCTOR__DIALOGS__BOOLEAN_DIALOG_H
#define LOGDOCTOR__DIALOGS__BOOLEAN_DIALOG_H
2022-10-05 21:20:42 +02:00
#include <QDialog>
2022-10-23 16:41:36 +02:00
2022-10-05 21:20:42 +02:00
namespace Ui {
class DialogBool;
}
//! DialogBool
/*!
YES/NO choice dialog
*/
class DialogBool final : public QDialog
2022-10-05 21:20:42 +02:00
{
Q_OBJECT
public:
/*!
\param title The title
\param text The message
\param parent The parent Widget
*/
2023-01-23 19:07:24 +01:00
explicit DialogBool( const QString& title, const QString& text, QWidget *parent=nullptr );
Q_DISABLE_COPY_MOVE(DialogBool)
2022-10-05 21:20:42 +02:00
private slots:
//! Called when the NO button gets clicked
2022-10-05 21:20:42 +02:00
void on_button_NO_clicked();
//! Called when the YES button gets clicked
2022-10-05 21:20:42 +02:00
void on_button_YES_clicked();
private:
QSharedPointer<Ui::DialogBool> ui;
2022-10-05 21:20:42 +02:00
};
#endif // LOGDOCTOR__DIALOGS__BOOLEAN_DIALOG_H