2014-01-10 23:27:44 +00:00
/*
2015-02-17 21:11:34 +00:00
* ZeroTier One - Network Virtualization Everywhere
* Copyright ( C ) 2011 - 2015 ZeroTier , Inc .
2014-01-10 23:27:44 +00:00
*
* This program is free software : you can redistribute it and / or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation , either version 3 of the License , or
* ( at your option ) any later version .
*
* This program is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
* GNU General Public License for more details .
*
* You should have received a copy of the GNU General Public License
* along with this program . If not , see < http : //www.gnu.org/licenses/>.
*
* - -
*
* ZeroTier may be used and distributed under the terms of the GPLv3 , which
* are available at : http : //www.gnu.org/licenses/gpl-3.0.html
*
* If you would like to embed ZeroTier into a commercial application or
* redistribute it in a modified binary form , please contact ZeroTier Networks
* LLC . Start here : http : //www.zerotier.com/
*/
2013-11-15 22:04:32 +00:00
# include "aboutwindow.h"
# include "ui_aboutwindow.h"
2013-11-21 20:11:22 +00:00
# include <QMessageBox>
2014-01-27 06:24:29 +00:00
# include <QFont>
2014-01-09 07:12:03 +00:00
2014-01-27 06:24:29 +00:00
# include "../node/Constants.hpp"
2014-01-09 07:12:03 +00:00
# include "../node/Node.hpp"
2013-11-21 20:11:22 +00:00
2013-11-15 22:04:32 +00:00
AboutWindow : : AboutWindow ( QWidget * parent ) :
QDialog ( parent ) ,
ui ( new Ui : : AboutWindow )
{
ui - > setupUi ( this ) ;
2014-04-03 00:12:04 +00:00
ui - > aboutTextLabel - > setText ( QString ( " ZeroTier One \n Version " ) + ZeroTier : : Node : : versionString ( ) + " \n Desktop Graphical User Interface \n \n (c)2011-2014 ZeroTier Networks LLC \n \n Released under the terms of the GNU \n General Public License v3.0, see: http://gplv3.fsf.org for terms. \n \n Author(s): Adam Ierymenko " ) ;
# ifdef __WINDOWS__
2014-04-09 19:19:46 +00:00
/*
2014-04-03 00:12:04 +00:00
QWidgetList widgets = this - > findChildren < QWidget * > ( ) ;
foreach ( QWidget * widget , widgets ) {
QFont font ( widget - > font ( ) ) ;
font . setPointSizeF ( font . pointSizeF ( ) * 0.75 ) ;
widget - > setFont ( font ) ;
}
2014-04-09 19:19:46 +00:00
*/
2014-04-03 00:12:04 +00:00
this - > raise ( ) ;
# endif
2013-11-15 22:04:32 +00:00
}
AboutWindow : : ~ AboutWindow ( )
{
delete ui ;
}