From 80e36da2bbb4c6ce0e6f04ccff595f61769bb4ab Mon Sep 17 00:00:00 2001 From: Stefan Suhren Date: Mon, 30 Mar 2015 10:33:49 +0200 Subject: Adds comments and uses naming convention for auto connection --- dlgpreferences.cpp | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'dlgpreferences.cpp') 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(); -- cgit v1.2.3-70-g09d2