Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
0fa46e2b
Commit
0fa46e2b
authored
Apr 26, 2010
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: translate external dialogs buttons too
parent
8f971a41
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
modules/gui/qt4/dialogs/external.cpp
modules/gui/qt4/dialogs/external.cpp
+8
-5
No files found.
modules/gui/qt4/dialogs/external.cpp
View file @
0fa46e2b
...
...
@@ -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 */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment