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:
parent
1246fb1b85
commit
38820f5d7d
@ -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);
|
||||
}
|
||||
|
||||
|
@ -33,6 +33,8 @@
|
||||
#include <QPainter>
|
||||
#include <extensionsystem/pluginspec.h>
|
||||
|
||||
#include "../../../../build/ground/openpilotgcs/gcsversioninfo.h"
|
||||
|
||||
class GCSSplashScreen : public QSplashScreen
|
||||
{
|
||||
Q_OBJECT
|
||||
|
Loading…
x
Reference in New Issue
Block a user