1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-27 16:54:15 +01:00

OP-786 Fixed the Revision text to use the same info as in the about dialog. Updated text drawing code to use word wrap since developer build revision numbers are fairly long strings.

This commit is contained in:
Fredrik Arvidsson 2013-01-22 15:18:40 +01:00
parent 1246fb1b85
commit 38820f5d7d
2 changed files with 6 additions and 2 deletions

View File

@ -41,7 +41,8 @@ GCSSplashScreen::GCSSplashScreen() :
QFont font("Tahoma", 8);
m_painter->setFont(font);
m_painter->drawText(405, 170, QString(CopyrightSymbol) +
QString(tr("2010-2013 The OpenPilot Project - All Rights Reserved")));
QString(" 2010-") + QString(GCS_YEAR) +
QString(tr(" The OpenPilot Project - All Rights Reserved")));
QString revision;
#ifdef GCS_REVISION
@ -50,7 +51,8 @@ GCSSplashScreen::GCSSplashScreen() :
revision = tr("N/A");
#endif
m_painter->drawText(405, 190, QString(tr("GCS Revision - ")) + revision);
m_painter->drawText(406, 175, 310, 100, Qt::TextWordWrap|Qt::AlignTop|Qt::AlignLeft,
QString(tr("GCS Revision - ")) + revision);
setPixmap(*m_pixmap);
}

View File

@ -33,6 +33,8 @@
#include <QPainter>
#include <extensionsystem/pluginspec.h>
#include "../../../../build/ground/openpilotgcs/gcsversioninfo.h"
class GCSSplashScreen : public QSplashScreen
{
Q_OBJECT