// <Cancel>
QPushButton* cancelBtn = new QPushButton( tr( "CANCEL" ), this );
+ cancelBtn->setAutoDefault( true );
+
myButtonLayout->addSpacing( 70 );
myButtonLayout->addStretch();
myButtonLayout->addWidget( cancelBtn );
}
QPushButton* newButton = new QPushButton( button, this );
+ newButton->setAutoDefault( true );
- if ( myButtons.empty() ) newButton->setDefault( true );
+ if ( myButtons.empty() ) {
+ newButton->setDefault( true );
+ newButton->setFocus();
+ }
myButtons.insert( newButton, bid );
myButtonLayout->insertWidget( myButtonLayout->count()-3, newButton );