diff options
| author | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-03-30 10:33:49 +0200 |
|---|---|---|
| committer | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-03-30 10:33:49 +0200 |
| commit | 80e36da2bbb4c6ce0e6f04ccff595f61769bb4ab (patch) | |
| tree | 69cd6d7a351bc07d4c41ffc271d17e8afc45dff4 /dlgpreferences.cpp | |
| parent | 74d0a4a6f634010db71d05536cffef15bfb1edd9 (diff) | |
| download | GUI_SS2015-80e36da2bbb4c6ce0e6f04ccff595f61769bb4ab.tar.gz GUI_SS2015-80e36da2bbb4c6ce0e6f04ccff595f61769bb4ab.zip | |
Adds comments and uses naming convention for auto connection
Diffstat (limited to 'dlgpreferences.cpp')
| -rw-r--r-- | dlgpreferences.cpp | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/dlgpreferences.cpp b/dlgpreferences.cpp index 4661fa5..9174401 100644 --- a/dlgpreferences.cpp +++ b/dlgpreferences.cpp @@ -17,6 +17,11 @@ DlgPreferences::~DlgPreferences() delete ui; } +/** + * @brief DlgPreferences::setHeight + * @param arg + * The hight that will be displayed in the lineEditHeight. + */ void DlgPreferences::setHeight(int arg) { if (m_Height == arg) @@ -27,6 +32,11 @@ void DlgPreferences::setHeight(int arg) emit HeightChanged(arg); } +/** + * @brief DlgPreferences::setWidth + * @param arg + * The width that will be displayed in the lineEditWidth. + */ void DlgPreferences::setWidth(int arg) { if (m_Width == arg) @@ -38,14 +48,18 @@ void DlgPreferences::setWidth(int arg) } - +/** + * @brief DlgPreferences::on_buttonOk_clicked + */ void DlgPreferences::on_buttonOk_clicked() { qDebug() << "Height: " << ui->lineEditHeight->text(); qDebug() << "Width:" << ui->lineEditWidth->text(); } - +/** + * @brief DlgPreferences::accept + */ void DlgPreferences::accept() { setHeight(ui->lineEditHeight->text().toInt()); @@ -54,6 +68,9 @@ void DlgPreferences::accept() QDialog::accept(); } +/** + * @brief DlgPreferences::reject + */ void DlgPreferences::reject() { QDialog::reject(); |
