Commit 15d6b7a9 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: translate external dialogs buttons too

(cherry picked from commit 0fa46e2b1163741732440d1e17b09095e7c2cb4d)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent e40bf9c6
...@@ -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