fixed the inclusion of the logo file into the binary using QT resources
This commit is contained in:
parent
32390dfafa
commit
7a1ae43462
3 changed files with 13 additions and 4 deletions
BIN
logo.png
BIN
logo.png
Binary file not shown.
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 34 KiB |
|
@ -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
6
resources.qrc
Normal file
|
@ -0,0 +1,6 @@
|
|||
<!DOCTYPE RCC>
|
||||
<RCC version="1.0">
|
||||
<qresource>
|
||||
<file>logo.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
Loading…
Add table
Add a link
Reference in a new issue