mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-22 14:22:23 +00:00
dfee7e0389
Version 0.7.2 marks the first release of ZeroTier One for Windows. Binaries will be released to a few select testers at first, then to the whole world. Installation from MSI and auto-update appear to be working. So far Windows 7 and 8 and Windows Server 2008 or newer are supported. Vista has issues so it's not supported at the moment, and may not be since nobody seems to use it (according to Google Analytics).
44 lines
771 B
C++
44 lines
771 B
C++
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
#include "main.h"
|
|
#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);
|
|
}
|
|
this->raise();
|
|
#endif
|
|
}
|
|
|
|
LicenseDialog::~LicenseDialog()
|
|
{
|
|
delete ui;
|
|
}
|
|
|
|
void LicenseDialog::on_buttonBox_accepted()
|
|
{
|
|
settings->setValue("acceptedLicenseV1",true);
|
|
settings->sync();
|
|
|
|
this->setResult(QDialog::Accepted);
|
|
}
|
|
|
|
void LicenseDialog::on_buttonBox_rejected()
|
|
{
|
|
::exit(0);
|
|
}
|