fixed the inclusion of the logo file into the binary using QT resources

This commit is contained in:
James Coxon 2017-04-18 20:55:41 +01:00 committed by clemahieu
commit 7a1ae43462
3 changed files with 13 additions and 4 deletions

BIN
logo.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Before After
Before After

View file

@ -192,11 +192,14 @@ bool update_config (qt_wallet_config & config_a, boost::filesystem::path const &
int run_wallet (QApplication & application, int argc, char * const * argv)
{
rai_qt::eventloop_processor processor;
QPixmap pixmap("logo.png");
QSplashScreen splash(pixmap);
splash.show();
auto working (rai::working_path ());
boost::filesystem::create_directories (working);
QPixmap pixmap(":/logo.png");
QSplashScreen *splash = new QSplashScreen(pixmap);
splash->show();
application.processEvents();
splash->showMessage(QSplashScreen::tr("Remember - Backup Your Wallet Seed"), Qt::AlignBottom | Qt::AlignHCenter, Qt::black);
application.processEvents();
qt_wallet_config config (working);
auto config_path ((working / "config.json"));
int result (0);
@ -249,7 +252,7 @@ int run_wallet (QApplication & application, int argc, char * const * argv)
{
rpc.start ();
}
auto gui (std::make_shared <rai_qt::wallet> (application, processor, *node, wallet, config.account));
auto gui (std::make_shared <rai_qt::wallet> (application, *node, wallet, config.account));
splash.close();
gui->start ();
gui->client_window->show ();

6
resources.qrc Normal file
View file

@ -0,0 +1,6 @@
<!DOCTYPE RCC>
<RCC version="1.0">
<qresource>
<file>logo.png</file>
</qresource>
</RCC>