summaryrefslogtreecommitdiff
path: root/src/motddialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/motddialog.cpp')
-rw-r--r--src/motddialog.cpp27
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);
}