Commit 0fa46e2b authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: translate external dialogs buttons too

parent 8f971a41
...@@ -128,11 +128,14 @@ void DialogHandler::requestLogin (vlc_object_t *, void *value) ...@@ -128,11 +128,14 @@ void DialogHandler::requestLogin (vlc_object_t *, void *value)
layout->addWidget (panel); layout->addWidget (panel);
/* OK, Cancel buttons */ /* OK, Cancel buttons */
QDialogButtonBox *buttonBox; QDialogButtonBox *buttonBox = new QDialogButtonBox;
buttonBox = new QDialogButtonBox (QDialogButtonBox::Ok QPushButton *okButton = new QPushButton( "&Ok" );
| QDialogButtonBox::Cancel); QPushButton *cancelButton = new QPushButton( "&Cancel" );
connect (buttonBox, SIGNAL(accepted()), dialog, SLOT(accept())); buttonBox->addButton( okButton, QDialogButtonBox::AcceptRole );
connect (buttonBox, SIGNAL(rejected()), dialog, SLOT(reject())); buttonBox->addButton( cancelButton, QDialogButtonBox::RejectRole );
CONNECT( okButton, accepted(), dialog, accept() );
CONNECT( cancelButton, rejected(), dialog, reject() );
layout->addWidget (buttonBox); layout->addWidget (buttonBox);
/* Run the dialog */ /* Run the dialog */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment