LogDoctor/logdoctor/modules/dialogs/boolean_dialog.h

44 lines
795 B
C++

#ifndef LOGDOCTOR__DIALOGS__BOOLEAN_DIALOG_H
#define LOGDOCTOR__DIALOGS__BOOLEAN_DIALOG_H
#include <QDialog>
namespace Ui {
class DialogBool;
}
//! DialogBool
/*!
YES/NO choice dialog
*/
class DialogBool final : public QDialog
{
Q_OBJECT
public:
/*!
\param title The title
\param text The message
\param parent The parent Widget
*/
explicit DialogBool( const QString& title, const QString& text, QWidget *parent=nullptr );
Q_DISABLE_COPY_MOVE(DialogBool)
private slots:
//! Called when the NO button gets clicked
void on_button_NO_clicked();
//! Called when the YES button gets clicked
void on_button_YES_clicked();
private:
QSharedPointer<Ui::DialogBool> ui;
};
#endif // LOGDOCTOR__DIALOGS__BOOLEAN_DIALOG_H