2014-07-08 03:11:14 -04:00
|
|
|
#include "FractoriumPch.h"
|
|
|
|
#include "AboutDialog.h"
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Constructor that takes a parent widget and passes it to the base, then
|
|
|
|
/// sets up the GUI.
|
|
|
|
/// </summary>
|
2015-01-02 18:11:36 -05:00
|
|
|
/// <param name="p">The parent widget. Default: nullptr.</param>
|
2014-07-08 03:11:14 -04:00
|
|
|
/// <param name="f">The window flags. Default: 0.</param>
|
2014-12-11 00:50:15 -05:00
|
|
|
FractoriumAboutDialog::FractoriumAboutDialog(QWidget* p, Qt::WindowFlags f)
|
|
|
|
: QDialog(p, f)
|
2014-07-08 03:11:14 -04:00
|
|
|
{
|
|
|
|
ui.setupUi(this);
|
2015-01-02 18:11:36 -05:00
|
|
|
adjustSize();//Must do this to ensure all text is displayed when using different fonts.
|
|
|
|
setMinimumHeight(height());//Once properly sized, disallow resizing.
|
|
|
|
setMaximumHeight(height());
|
|
|
|
setMinimumWidth(width());
|
|
|
|
setMaximumWidth(width());
|
2018-09-18 23:49:38 -04:00
|
|
|
ui.CreditsTextBrowser->setOpenLinks(true);
|
|
|
|
ui.CreditsTextBrowser->setOpenExternalLinks(true);
|
2014-07-08 03:11:14 -04:00
|
|
|
}
|