-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
134 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#include "aboutpatternpaint.h" | ||
#include "ui_aboutpatternpaint.h" | ||
|
||
#include <QDebug> | ||
#include <QtWidgetsDepends> | ||
|
||
AboutPatternPaint::AboutPatternPaint(QWidget *parent) : | ||
QDialog(parent), | ||
ui(new Ui::AboutPatternPaint) | ||
{ | ||
ui->setupUi(this); | ||
|
||
QString versionNumber = QString("Version %1.%2.%3").arg(VERSION_MAJOR).arg(VERSION_MINOR).arg(VERSION_BUILD); | ||
ui->versionLabel->setText(versionNumber); | ||
|
||
ui->InfoText->setOpenExternalLinks(true); | ||
} | ||
|
||
AboutPatternPaint::~AboutPatternPaint() | ||
{ | ||
delete ui; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#ifndef ABOUTPATTERNPAINT_H | ||
#define ABOUTPATTERNPAINT_H | ||
|
||
#include <QDialog> | ||
|
||
namespace Ui { | ||
class AboutPatternPaint; | ||
} | ||
|
||
class AboutPatternPaint : public QDialog | ||
{ | ||
Q_OBJECT | ||
|
||
public: | ||
explicit AboutPatternPaint(QWidget *parent = 0); | ||
~AboutPatternPaint(); | ||
|
||
private: | ||
Ui::AboutPatternPaint *ui; | ||
}; | ||
|
||
#endif // ABOUTPATTERNPAINT_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>AboutPatternPaint</class> | ||
<widget class="QDialog" name="AboutPatternPaint"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>399</width> | ||
<height>239</height> | ||
</rect> | ||
</property> | ||
<property name="sizePolicy"> | ||
<sizepolicy hsizetype="Fixed" vsizetype="Fixed"> | ||
<horstretch>0</horstretch> | ||
<verstretch>0</verstretch> | ||
</sizepolicy> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>About PatternPaint</string> | ||
</property> | ||
<property name="styleSheet"> | ||
<string notr="true">background:url(:/resources/images/PatternPaintAbout.png)</string> | ||
</property> | ||
<widget class="QTextBrowser" name="InfoText"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>180</y> | ||
<width>401</width> | ||
<height>61</height> | ||
</rect> | ||
</property> | ||
<property name="autoFillBackground"> | ||
<bool>false</bool> | ||
</property> | ||
<property name="styleSheet"> | ||
<string notr="true">background:none</string> | ||
</property> | ||
<property name="frameShape"> | ||
<enum>QFrame::NoFrame</enum> | ||
</property> | ||
<property name="html"> | ||
<string><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> | ||
<html><head><meta name="qrichtext" content="1" /><style type="text/css"> | ||
p, li { white-space: pre-wrap; } | ||
</style></head><body style=" font-family:'.Lucida Grande UI'; font-size:13pt; font-weight:400; font-style:normal;"> | ||
<p align="center" style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-size:14pt;">Visit </span><a href="http://blinkinlabs.com"><span style=" font-size:14pt; text-decoration: underline; color:#0000ff;">Blinkinlabs.com</span></a><span style=" font-size:14pt;"> for more information about Pattern Paint, BlinkyTape, and other fun projects!</span></p></body></html></string> | ||
</property> | ||
</widget> | ||
<widget class="QLabel" name="versionLabel"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>150</y> | ||
<width>391</width> | ||
<height>31</height> | ||
</rect> | ||
</property> | ||
<property name="font"> | ||
<font> | ||
<pointsize>16</pointsize> | ||
</font> | ||
</property> | ||
<property name="styleSheet"> | ||
<string notr="true">background:none</string> | ||
</property> | ||
<property name="text"> | ||
<string>Version 0.0.0</string> | ||
</property> | ||
<property name="alignment"> | ||
<set>Qt::AlignCenter</set> | ||
</property> | ||
</widget> | ||
</widget> | ||
<resources/> | ||
<connections/> | ||
</ui> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters