diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-12-24 23:38:37 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-12-24 23:39:04 +0100 |
commit | 8d0ca72abb10b0cb77816d44f3f768865cc23aef (patch) | |
tree | 07a866c3625bad8369ed55dea89034b288358591 /gui/dialogs | |
parent | 027aafc3c1fc5e78c91ee439cd38562387f7ed9f (diff) | |
download | MultiMC-8d0ca72abb10b0cb77816d44f3f768865cc23aef.tar MultiMC-8d0ca72abb10b0cb77816d44f3f768865cc23aef.tar.gz MultiMC-8d0ca72abb10b0cb77816d44f3f768865cc23aef.tar.lz MultiMC-8d0ca72abb10b0cb77816d44f3f768865cc23aef.tar.xz MultiMC-8d0ca72abb10b0cb77816d44f3f768865cc23aef.zip |
Log SSL errors, give common solutions
Diffstat (limited to 'gui/dialogs')
-rw-r--r-- | gui/dialogs/EditAccountDialog.cpp | 7 | ||||
-rw-r--r-- | gui/dialogs/EditAccountDialog.h | 3 | ||||
-rw-r--r-- | gui/dialogs/EditAccountDialog.ui | 6 |
3 files changed, 16 insertions, 0 deletions
diff --git a/gui/dialogs/EditAccountDialog.cpp b/gui/dialogs/EditAccountDialog.cpp index dd3f0523..a1bd5591 100644 --- a/gui/dialogs/EditAccountDialog.cpp +++ b/gui/dialogs/EditAccountDialog.cpp @@ -15,6 +15,8 @@ #include "EditAccountDialog.h" #include "ui_EditAccountDialog.h" +#include <QDesktopServices> +#include <QUrl> EditAccountDialog::EditAccountDialog(const QString &text, QWidget *parent, int flags) : QDialog(parent), ui(new Ui::EditAccountDialog) @@ -33,6 +35,11 @@ EditAccountDialog::~EditAccountDialog() delete ui; } +void EditAccountDialog::on_label_linkActivated(const QString &link) +{ + QDesktopServices::openUrl(QUrl(link)); +} + QString EditAccountDialog::username() const { return ui->userTextBox->text(); diff --git a/gui/dialogs/EditAccountDialog.h b/gui/dialogs/EditAccountDialog.h index be3a88d8..83f25124 100644 --- a/gui/dialogs/EditAccountDialog.h +++ b/gui/dialogs/EditAccountDialog.h @@ -52,6 +52,9 @@ public: PasswordField, }; +private slots: + void on_label_linkActivated(const QString &link); + private: Ui::EditAccountDialog *ui; }; diff --git a/gui/dialogs/EditAccountDialog.ui b/gui/dialogs/EditAccountDialog.ui index 1a8f9dba..5f727bd4 100644 --- a/gui/dialogs/EditAccountDialog.ui +++ b/gui/dialogs/EditAccountDialog.ui @@ -19,6 +19,12 @@ <property name="text"> <string>Message label placeholder.</string> </property> + <property name="textFormat"> + <enum>Qt::RichText</enum> + </property> + <property name="textInteractionFlags"> + <set>Qt::LinksAccessibleByKeyboard|Qt::LinksAccessibleByMouse|Qt::TextBrowserInteraction|Qt::TextSelectableByKeyboard|Qt::TextSelectableByMouse</set> + </property> </widget> </item> <item> |