mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +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:
parent
90b72798c4
commit
3f30d7d101
@ -41,7 +41,8 @@ GCSSplashScreen::GCSSplashScreen() :
|
|||||||
QFont font("Tahoma", 8);
|
QFont font("Tahoma", 8);
|
||||||
m_painter->setFont(font);
|
m_painter->setFont(font);
|
||||||
m_painter->drawText(405, 170, QString(CopyrightSymbol) +
|
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;
|
QString revision;
|
||||||
|
|
||||||
#ifdef GCS_REVISION
|
#ifdef GCS_REVISION
|
||||||
@ -50,7 +51,8 @@ GCSSplashScreen::GCSSplashScreen() :
|
|||||||
revision = tr("N/A");
|
revision = tr("N/A");
|
||||||
#endif
|
#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);
|
setPixmap(*m_pixmap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,6 +33,8 @@
|
|||||||
#include <QPainter>
|
#include <QPainter>
|
||||||
#include <extensionsystem/pluginspec.h>
|
#include <extensionsystem/pluginspec.h>
|
||||||
|
|
||||||
|
#include "../../../../build/ground/openpilotgcs/gcsversioninfo.h"
|
||||||
|
|
||||||
class GCSSplashScreen : public QSplashScreen
|
class GCSSplashScreen : public QSplashScreen
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user