Updated about window to use embedded png.
This commit is contained in:
parent
2c370389fd
commit
f436408b06
|
@ -8,7 +8,7 @@
|
||||||
#include <QPixmap>
|
#include <QPixmap>
|
||||||
#include <QUrl>
|
#include <QUrl>
|
||||||
#include <QDesktopServices>
|
#include <QDesktopServices>
|
||||||
#include "Qt/icon.xpm"
|
//#include "Qt/icon.xpm"
|
||||||
#include "Qt/AboutWindow.h"
|
#include "Qt/AboutWindow.h"
|
||||||
#include "../../version.h"
|
#include "../../version.h"
|
||||||
|
|
||||||
|
@ -18,9 +18,13 @@ AboutWindow::AboutWindow(QWidget *parent)
|
||||||
{
|
{
|
||||||
QVBoxLayout *mainLayout;
|
QVBoxLayout *mainLayout;
|
||||||
QHBoxLayout *hbox1;
|
QHBoxLayout *hbox1;
|
||||||
QPixmap pm( icon_xpm );
|
//QPixmap pm( icon_xpm );
|
||||||
|
QPixmap pm(":fceux.png");
|
||||||
|
QPixmap pm2;
|
||||||
QLabel *lbl;
|
QLabel *lbl;
|
||||||
|
|
||||||
|
pm2 = pm.scaled( 64, 64 );
|
||||||
|
|
||||||
setWindowTitle( tr("About fceuX") );
|
setWindowTitle( tr("About fceuX") );
|
||||||
|
|
||||||
resize( 512, 512 );
|
resize( 512, 512 );
|
||||||
|
@ -29,7 +33,7 @@ AboutWindow::AboutWindow(QWidget *parent)
|
||||||
|
|
||||||
hbox1 = new QHBoxLayout();
|
hbox1 = new QHBoxLayout();
|
||||||
lbl = new QLabel();
|
lbl = new QLabel();
|
||||||
lbl->setPixmap(pm);
|
lbl->setPixmap(pm2);
|
||||||
|
|
||||||
hbox1->addWidget( lbl );
|
hbox1->addWidget( lbl );
|
||||||
hbox1->setAlignment( Qt::AlignCenter );
|
hbox1->setAlignment( Qt::AlignCenter );
|
||||||
|
|
Loading…
Reference in New Issue