diff options
| author | Christoph Berg <christoph.berg@credativ.de> | 2022-08-23 10:23:31 +0200 |
|---|---|---|
| committer | Christoph Berg <christoph.berg@credativ.de> | 2022-08-23 10:23:31 +0200 |
| commit | 0e579a45e2e5823f90e2632073749583cd15fa0d (patch) | |
| tree | 5e709e13d41c8ea0da0968fb6c4566057b4b7909 /widgets/SplashScreen.cpp | |
| parent | 28d1767618141cd6481de2e93e36e3dfa555d4b4 (diff) | |
| parent | 2d1068e60bce7ae1fff11623454900e8cee956b1 (diff) | |
Update upstream source from tag 'upstream/2.6.0_rc3+repack'
Update to upstream version '2.6.0~rc3+repack'
with Debian dir 9ee8bc3a4b60bb88f4d57c7d1f2d37dbc1632144
Diffstat (limited to 'widgets/SplashScreen.cpp')
| -rwxr-xr-x | widgets/SplashScreen.cpp | 96 |
1 files changed, 48 insertions, 48 deletions
diff --git a/widgets/SplashScreen.cpp b/widgets/SplashScreen.cpp index 561733cc..8487dcf0 100755 --- a/widgets/SplashScreen.cpp +++ b/widgets/SplashScreen.cpp @@ -1,48 +1,48 @@ -#include "SplashScreen.hpp" - -#include <QPixmap> -#include <QVBoxLayout> -#include <QCheckBox> -#include <QCoreApplication> - -#include "revision_utils.hpp" -#include "pimpl_impl.hpp" - -#include "moc_SplashScreen.cpp" - -class SplashScreen::impl -{ -public: - impl () - : checkbox_ {"Do not show this again"} - { - main_layout_.addStretch (); - main_layout_.addWidget (&checkbox_, 0, Qt::AlignRight); - } - - QVBoxLayout main_layout_; - QCheckBox checkbox_; -}; - -SplashScreen::SplashScreen () - : QSplashScreen {QPixmap {":/splash.png"}, Qt::WindowStaysOnTopHint} -{ - setLayout (&m_->main_layout_); - showMessage ("<h2>" + QString {"WSJT-X v" + - QCoreApplication::applicationVersion() + " " + - revision ()}.simplified () + "</h2>" - "V2.0 has many new features.<br /><br />" - "The release notes have more details.<br /><br />" - "Send issue reports to https://wsjtx.groups.io, and be sure to save .wav<br />" - "files where appropriate.<br /><br />" - "<b>Open the Help menu and select Release Notes for more details.</b><br />" - "<img src=\":/icon_128x128.png\" />" - "<img src=\":/gpl-v3-logo.svg\" height=\"80\" />", Qt::AlignCenter); - connect (&m_->checkbox_, &QCheckBox::stateChanged, [this] (int s) { - if (Qt::Checked == s) Q_EMIT disabled (); - }); -} - -SplashScreen::~SplashScreen () -{ -} +#include "SplashScreen.hpp"
+
+#include <QPixmap>
+#include <QVBoxLayout>
+#include <QCheckBox>
+#include <QCoreApplication>
+
+#include "revision_utils.hpp"
+#include "pimpl_impl.hpp"
+
+#include "moc_SplashScreen.cpp"
+
+class SplashScreen::impl
+{
+public:
+ impl ()
+ : checkbox_ {"Do not show this again"}
+ {
+ main_layout_.addStretch ();
+ main_layout_.addWidget (&checkbox_, 0, Qt::AlignRight);
+ }
+
+ QVBoxLayout main_layout_;
+ QCheckBox checkbox_;
+};
+
+SplashScreen::SplashScreen ()
+ : QSplashScreen {QPixmap {":/splash.png"}, Qt::WindowStaysOnTopHint}
+{
+ setLayout (&m_->main_layout_);
+ showMessage ("<h2>" + QString {"WSJT-X v" +
+ QCoreApplication::applicationVersion() + " " +
+ revision ()}.simplified () + "</h2>"
+ "V2.0 has many new features.<br /><br />"
+ "The release notes have more details.<br /><br />"
+ "Send issue reports to https://wsjtx.groups.io, and be sure to save .wav<br />"
+ "files where appropriate.<br /><br />"
+ "<b>Open the Help menu and select Release Notes for more details.</b><br />"
+ "<img src=\":/icon_128x128.png\" />"
+ "<img src=\":/gpl-v3-logo.svg\" height=\"80\" />", Qt::AlignCenter);
+ connect (&m_->checkbox_, &QCheckBox::stateChanged, [this] (int s) {
+ if (Qt::Checked == s) Q_EMIT disabled ();
+ });
+}
+
+SplashScreen::~SplashScreen ()
+{
+}
|
