27 #include <QHBoxLayout>
28 #include <QVBoxLayout>
30 #include "WMainWindow.h"
32 #include "WQtMessageDialog.h"
38 m_settings( settings )
40 setWindowTitle( title );
44 QVBoxLayout* mainLayout =
new QVBoxLayout();
50 QHBoxLayout* bottomLayout =
new QHBoxLayout();
51 QWidget* bottomWidget =
new QWidget(
this );
52 bottomWidget->setLayout( bottomLayout );
53 mainLayout->addWidget( bottomWidget );
54 this->setLayout( mainLayout );
60 m_buttonBox->setStandardButtons( QDialogButtonBox::Ok );
virtual void accept()
Dialog closed.
QWidget * m_content
The widget showing the content.
QCheckBox * m_checkBox
Do not show again - Checkbox.
WQtMessageDialog(QString msgID, QString title, QWidget *content, QSettings &settings, QWidget *parent)
Construct a message dialog.
QSettings & m_settings
Settings object of the main window.
virtual ~WQtMessageDialog()
Destructor.
virtual void reject()
Dialog closed.
QDialogButtonBox * m_buttonBox
Dialog buttons.
void handleClose()
Handles close and saves setting.
QString m_msgID
The message ID.
virtual void show()
Shows the dialog if the user does not disabled it.