change: change code style to Linux style except indent.
This commit is contained in:
+16
-14
@@ -28,23 +28,25 @@
|
||||
|
||||
#include "ui/icons/icons.h"
|
||||
|
||||
namespace olive {
|
||||
|
||||
TextDialog::TextDialog(const QString &start, QWidget* parent) :
|
||||
QDialog(parent)
|
||||
namespace olive
|
||||
{
|
||||
QVBoxLayout* layout = new QVBoxLayout(this);
|
||||
|
||||
// Create text edit widget
|
||||
text_edit_ = new QPlainTextEdit();
|
||||
text_edit_->document()->setPlainText(start);
|
||||
layout->addWidget(text_edit_);
|
||||
TextDialog::TextDialog(const QString &start, QWidget *parent)
|
||||
: QDialog(parent)
|
||||
{
|
||||
QVBoxLayout *layout = new QVBoxLayout(this);
|
||||
|
||||
// Create buttons
|
||||
QDialogButtonBox* buttons = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
|
||||
layout->addWidget(buttons);
|
||||
connect(buttons, &QDialogButtonBox::accepted, this, &TextDialog::accept);
|
||||
connect(buttons, &QDialogButtonBox::rejected, this, &TextDialog::reject);
|
||||
// Create text edit widget
|
||||
text_edit_ = new QPlainTextEdit();
|
||||
text_edit_->document()->setPlainText(start);
|
||||
layout->addWidget(text_edit_);
|
||||
|
||||
// Create buttons
|
||||
QDialogButtonBox *buttons =
|
||||
new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
|
||||
layout->addWidget(buttons);
|
||||
connect(buttons, &QDialogButtonBox::accepted, this, &TextDialog::accept);
|
||||
connect(buttons, &QDialogButtonBox::rejected, this, &TextDialog::reject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user