summaryrefslogtreecommitdiff
path: root/ldmicro/commentdialog.cpp
diff options
context:
space:
mode:
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);
}