diff options
| author | MK <[email protected]> | 2014-04-14 20:36:50 +0200 |
|---|---|---|
| committer | MK <[email protected]> | 2014-04-14 20:36:50 +0200 |
| commit | 7e87d13b6f6c888096ec88335850943cc12674cb (patch) | |
| tree | 3a6d31c7e920f1b139cebd6c9eaaf233769ae486 /src | |
| parent | Replace shortcut names with Dogecoin (diff) | |
| download | discoin-7e87d13b6f6c888096ec88335850943cc12674cb.tar.xz discoin-7e87d13b6f6c888096ec88335850943cc12674cb.zip | |
Add Dogecoin devs to splashscreen copyright.
Diffstat (limited to 'src')
| -rw-r--r-- | src/qt/splashscreen.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/qt/splashscreen.cpp b/src/qt/splashscreen.cpp index 82124cba9..0407ebba2 100644 --- a/src/qt/splashscreen.cpp +++ b/src/qt/splashscreen.cpp @@ -10,6 +10,7 @@ #include <QApplication> #include <QPainter> +#include <QRectF> SplashScreen::SplashScreen(const QPixmap &pixmap, Qt::WindowFlags f, bool isTestNet) : QSplashScreen(pixmap, f) @@ -27,7 +28,7 @@ SplashScreen::SplashScreen(const QPixmap &pixmap, Qt::WindowFlags f, bool isTest // define text to place QString titleText = tr("Dogecoin Core"); QString versionText = QString("Version %1").arg(QString::fromStdString(FormatFullVersion())); - QString copyrightText = QChar(0xA9)+QString(" 2009-%1 ").arg(COPYRIGHT_YEAR) + QString(tr("The Bitcoin Core developers")); + QString copyrightText = QChar(0xA9)+QString(" 2009-%1 ").arg(COPYRIGHT_YEAR) + QString(tr("The Bitcoin Core developers\n")) + QChar(0xA9)+QString(" 2013-%1 ").arg(COPYRIGHT_YEAR) + QString(tr("The Dogecoin Core developers")); QString testnetAddText = QString(tr("[testnet]")); // define text to place as single text object QString font = "Comic Sans MS"; @@ -71,7 +72,8 @@ SplashScreen::SplashScreen(const QPixmap &pixmap, Qt::WindowFlags f, bool isTest // draw copyright stuff pixPaint.setFont(QFont(font, 10*fontFactor)); - pixPaint.drawText(newPixmap.width()-titleTextWidth-paddingRight,paddingTop+titleCopyrightVSpace,copyrightText); + QRect copyrightRect = QRect(newPixmap.width()-titleTextWidth-paddingRight,paddingTop+titleCopyrightVSpace,fm.width(copyrightText),fm.height()*2); + pixPaint.drawText(copyrightRect,Qt::TextWordWrap,copyrightText); // draw testnet string if testnet is on if(isTestNet) { |