diff options
| author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2018-02-22 16:54:34 +0100 |
|---|---|---|
| committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2018-02-22 16:54:34 +0100 |
| commit | 5e5c9c07291f6b09623d31c92b1fb61c4ede576e (patch) | |
| tree | 0684c123db375336e0e03f0240155a12e744db16 /src/motddialog.cpp | |
| parent | 5ad912e1934061b38825801a27f7c12933878005 (diff) | |
Applied clang-format on source
Diffstat (limited to 'src/motddialog.cpp')
| -rw-r--r-- | src/motddialog.cpp | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/src/motddialog.cpp b/src/motddialog.cpp index 96d88542..a03bdf75 100644 --- a/src/motddialog.cpp +++ b/src/motddialog.cpp @@ -19,29 +19,20 @@ along with Mod Organizer. If not, see <http://www.gnu.org/licenses/>. #include "motddialog.h"
#include "bbcode.h"
-#include "utility.h"
#include "ui_motddialog.h"
+#include "utility.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);
}
|
