diff options
| author | Christoph Berg <myon@debian.org> | 2018-12-19 23:01:50 +0100 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2018-12-19 23:01:50 +0100 |
| commit | 5c60c77adff9a54fd5f94f9915b22ccd8c4c5a3b (patch) | |
| tree | 410fa358a5f73260a579b4d669730f319a4d2609 /SplashScreen.cpp | |
| parent | 6c82050de806dcdafaed0077400a6c3396a4a159 (diff) | |
| parent | e0737c56c1e384e05064a0c6e1ac46979371041b (diff) | |
Update upstream source from tag 'upstream/2.0.0+repack'
Update to upstream version '2.0.0+repack'
with Debian dir 55dbb3a6a7eb189e187dd79f732623ca0b56116d
Diffstat (limited to 'SplashScreen.cpp')
| -rw-r--r-- | SplashScreen.cpp | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/SplashScreen.cpp b/SplashScreen.cpp deleted file mode 100644 index 727e0e85..00000000 --- a/SplashScreen.cpp +++ /dev/null @@ -1,48 +0,0 @@ -#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>" - "V1.8 has many new features.<br /><br />" - "The release notes have more details.<br /><br />" - "Send issue reports to wsjtgroup@yahoogroups.com, 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 () -{ -} |
