Added button icons to the bottom row of the Qt iNES header editor.

This commit is contained in:
mjbudd77 2021-02-14 05:55:57 -05:00
parent b98feca574
commit 5d0c9b2225
1 changed files with 7 additions and 0 deletions

View File

@ -163,8 +163,11 @@ iNesHeaderEditor_t::iNesHeaderEditor_t(QWidget *parent)
QHBoxLayout *hbox, *hbox1, *hbox2, *hbox3;
QGroupBox *box, *hdrBox;
QGridLayout *grid;
QStyle *style;
char stmp[128];
style = this->style();
initOK = false;
font.setFamily("Courier New");
@ -461,6 +464,10 @@ iNesHeaderEditor_t::iNesHeaderEditor_t(QWidget *parent)
saveAsBtn = new QPushButton( tr("Save As") );
closeBtn = new QPushButton( tr("Close") );
restoreBtn->setIcon( style->standardIcon( QStyle::SP_DialogResetButton ) );
saveAsBtn->setIcon( style->standardIcon( QStyle::SP_DialogSaveButton ) );
closeBtn->setIcon( style->standardIcon( QStyle::SP_DialogCloseButton ) );
grid->addWidget( restoreBtn, 0, 0, Qt::AlignLeft );
grid->addWidget( saveAsBtn , 0, 1, Qt::AlignRight );
grid->addWidget( closeBtn , 0, 2, Qt::AlignRight );