summaryrefslogtreecommitdiff
path: root/ZeroTierUI/licensedialog.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@zerotier.com>2014-01-26 22:24:29 -0800
committerAdam Ierymenko <adam.ierymenko@zerotier.com>2014-01-26 22:24:29 -0800
commit28665079a01d26345e1289f2eaaca3307f83ac29 (patch)
tree18a01c523f6e411650c07651b5f25b276f523b1d /ZeroTierUI/licensedialog.cpp
parent80997f652b2c2cbca615174f9b2dd09411d723a9 (diff)
downloadinfinitytier-28665079a01d26345e1289f2eaaca3307f83ac29.tar.gz
infinitytier-28665079a01d26345e1289f2eaaca3307f83ac29.zip
Windows UI appearance fixes (font issue, etc.) and fix to WinSock init on GUI client.
Diffstat (limited to 'ZeroTierUI/licensedialog.cpp')
-rw-r--r--ZeroTierUI/licensedialog.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/ZeroTierUI/licensedialog.cpp b/ZeroTierUI/licensedialog.cpp
index bda9488d..8df3cc4c 100644
--- a/ZeroTierUI/licensedialog.cpp
+++ b/ZeroTierUI/licensedialog.cpp
@@ -5,11 +5,22 @@
#include "licensedialog.h"
#include "ui_licensedialog.h"
+#include "../node/Constants.hpp"
+
LicenseDialog::LicenseDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::LicenseDialog)
{
ui->setupUi(this);
+
+#ifdef __WINDOWS__
+ QWidgetList widgets = this->findChildren<QWidget*>();
+ foreach(QWidget *widget, widgets) {
+ QFont font(widget->font());
+ font.setPointSizeF(font.pointSizeF() * 0.75);
+ widget->setFont(font);
+ }
+#endif
}
LicenseDialog::~LicenseDialog()