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

Qt: translate external dialogs buttons too

(cherry picked from commit 0fa46e2b)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent e40bf9c6
......@@ -128,11 +128,14 @@ void DialogHandler::requestLogin (vlc_object_t *, void *value)
layout->addWidget (panel);
/* OK, Cancel buttons */
QDialogButtonBox *buttonBox;
buttonBox = new QDialogButtonBox (QDialogButtonBox::Ok
| QDialogButtonBox::Cancel);
connect (buttonBox, SIGNAL(accepted()), dialog, SLOT(accept()));
connect (buttonBox, SIGNAL(rejected()), dialog, SLOT(reject()));
QDialogButtonBox *buttonBox = new QDialogButtonBox;
QPushButton *okButton = new QPushButton( "&Ok" );
QPushButton *cancelButton = new QPushButton( "&Cancel" );
buttonBox->addButton( okButton, QDialogButtonBox::AcceptRole );
buttonBox->addButton( cancelButton, QDialogButtonBox::RejectRole );
CONNECT( okButton, accepted(), dialog, accept() );
CONNECT( cancelButton, rejected(), dialog, reject() );
layout->addWidget (buttonBox);
/* 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