diff options
| author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2018-02-23 01:45:58 +0100 |
|---|---|---|
| committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2018-02-23 01:45:58 +0100 |
| commit | ea6292168a6acd4c263913f0ccd7dd64daf4f5cf (patch) | |
| tree | 312024abbd7c3c100274f3a8031d49096480b654 /src/motddialog.cpp | |
| parent | 5e5c9c07291f6b09623d31c92b1fb61c4ede576e (diff) | |
Revert "Applied clang-format on source"
This reverts commit 5e5c9c07291f6b09623d31c92b1fb61c4ede576e.
Diffstat (limited to 'src/motddialog.cpp')
| -rw-r--r-- | src/motddialog.cpp | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/src/motddialog.cpp b/src/motddialog.cpp index a03bdf75..96d88542 100644 --- a/src/motddialog.cpp +++ b/src/motddialog.cpp @@ -19,20 +19,29 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. #include "motddialog.h"
#include "bbcode.h"
-#include "ui_motddialog.h"
#include "utility.h"
+#include "ui_motddialog.h"
#include <Shlwapi.h>
-MotDDialog::MotDDialog(const QString& message, QWidget* parent) : QDialog(parent), ui(new Ui::MotDDialog) {
- ui->setupUi(this);
- ui->motdView->setHtml(BBCode::convertToHTML(message));
- connect(ui->motdView, SIGNAL(anchorClicked(QUrl)), this, SLOT(linkClicked(QUrl)));
+MotDDialog::MotDDialog(const QString &message, QWidget *parent)
+ : QDialog(parent), ui(new Ui::MotDDialog)
+{
+ ui->setupUi(this);
+ ui->motdView->setHtml(BBCode::convertToHTML(message));
+ connect(ui->motdView, SIGNAL(anchorClicked(QUrl)), this, SLOT(linkClicked(QUrl)));
}
-MotDDialog::~MotDDialog() { delete ui; }
+MotDDialog::~MotDDialog()
+{
+ delete ui;
+}
-void MotDDialog::on_okButton_clicked() { this->close(); }
+void MotDDialog::on_okButton_clicked()
+{
+ this->close();
+}
-void MotDDialog::linkClicked(const QUrl& url) {
- ::ShellExecuteW(nullptr, L"open", MOBase::ToWString(url.toString()).c_str(), nullptr, nullptr, SW_SHOWNORMAL);
+void MotDDialog::linkClicked(const QUrl &url)
+{
+ ::ShellExecuteW(nullptr, L"open", MOBase::ToWString(url.toString()).c_str(), nullptr, nullptr, SW_SHOWNORMAL);
}
|
