summaryrefslogtreecommitdiff
path: root/ldmicro/commentdialog.cpp
diff options
context:
space:
mode:
authorakshay-c2019-05-07 10:50:36 +0530
committerakshay-c2019-05-07 10:50:36 +0530
commitf6250bab468eadfc020922040966d6ba75edd341 (patch)
tree7facc6d3fd89c0c23bce197ca9eb67fd2b20a185 /ldmicro/commentdialog.cpp
parent46fbe3ae31bb5687f31b17acac4c449699876f2f (diff)
downloadLDmicroQt-f6250bab468eadfc020922040966d6ba75edd341.tar.gz
LDmicroQt-f6250bab468eadfc020922040966d6ba75edd341.tar.bz2
LDmicroQt-f6250bab468eadfc020922040966d6ba75edd341.zip
Uncommented Titlebar Update Calls at places; Code beautification and code cleaning
Diffstat (limited to 'ldmicro/commentdialog.cpp')
-rw-r--r--ldmicro/commentdialog.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/ldmicro/commentdialog.cpp b/ldmicro/commentdialog.cpp
index 66832ef..1b7bffe 100644
--- a/ldmicro/commentdialog.cpp
+++ b/ldmicro/commentdialog.cpp
@@ -42,8 +42,14 @@ static void MakeControls(void)
CommentTextbox = new QLineEdit();
CommentGrid->addWidget(CommentTextbox, 0, 0);
CommentGrid->addWidget(ButtonBox, 0, 1);
- QObject::connect(ButtonBox, SIGNAL(accepted()), CommentDialog, SLOT(accept()));
- QObject::connect(ButtonBox, SIGNAL(rejected()), CommentDialog, SLOT(reject()));
+ QObject::connect(ButtonBox,
+ SIGNAL(accepted()),
+ CommentDialog,
+ SLOT(accept()));
+ QObject::connect(ButtonBox,
+ SIGNAL(rejected()),
+ CommentDialog,
+ SLOT(reject()));
FixedFont(CommentTextbox);
}
@@ -66,7 +72,8 @@ void ShowCommentDialog(char *comment)
{
case QDialog::Accepted:
{
- strncpy(comment, CommentTextbox->text().toStdString().c_str(),
+ strncpy(comment,
+ CommentTextbox->text().toStdString().c_str(),
MAX_COMMENT_LEN -1);
}