[Qt] Set the test application icon
The super cool Mapbox logo.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
#include <QApplication>
|
||||
#include <QDebug>
|
||||
#include <QIcon>
|
||||
#include <QKeyEvent>
|
||||
#include <QMouseEvent>
|
||||
#include <QString>
|
||||
@@ -22,6 +23,8 @@ MapWindow::MapWindow(const QMapboxGLSettings &settings)
|
||||
|
||||
connect(&m_zoomAnimation, SIGNAL(finished()), this, SLOT(animationFinished()));
|
||||
connect(&m_zoomAnimation, SIGNAL(valueChanged(const QVariant&)), this, SLOT(animationValueChanged()));
|
||||
|
||||
setWindowIcon(QIcon(":icon.png"));
|
||||
}
|
||||
|
||||
void MapWindow::selfTest()
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<!DOCTYPE RCC><RCC version="1.0">
|
||||
<qresource>
|
||||
<file alias="ca-bundle.crt">../../common/ca-bundle.crt</file>
|
||||
<file alias="icon.png">../../common/icon.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include <QGuiApplication>
|
||||
#include <QIcon>
|
||||
#include <QQmlApplicationEngine>
|
||||
#include <qqml.h>
|
||||
|
||||
@@ -8,6 +9,10 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
QGuiApplication app(argc, argv);
|
||||
|
||||
#if QT_VERSION >= 0x050300
|
||||
app.setWindowIcon(QIcon(":icon.png"));
|
||||
#endif
|
||||
|
||||
qmlRegisterType<QQuickMapboxGL>("QQuickMapboxGL", 1, 0, "QQuickMapboxGL");
|
||||
|
||||
QQmlApplicationEngine engine;
|
||||
|
||||
Reference in New Issue
Block a user