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
8bcd3c6f
Commit
8bcd3c6f
authored
Jan 17, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: interaction, add accelerators to the buttons.
parent
2a6fb859
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
modules/gui/qt4/dialogs/interaction.cpp
modules/gui/qt4/dialogs/interaction.cpp
+6
-6
No files found.
modules/gui/qt4/dialogs/interaction.cpp
View file @
8bcd3c6f
...
...
@@ -78,15 +78,15 @@ InteractionDialog::InteractionDialog( intf_thread_t *_p_intf,
cancelBox
.
setText
(
qfu
(
p_dialog
->
psz_description
)
);
if
(
p_dialog
->
psz_default_button
)
cancelBox
.
addButton
(
qfu
(
p_dialog
->
psz_default_button
),
cancelBox
.
addButton
(
"&"
+
qfu
(
p_dialog
->
psz_default_button
),
QMessageBox
::
AcceptRole
);
if
(
p_dialog
->
psz_alternate_button
)
cancelBox
.
addButton
(
qfu
(
p_dialog
->
psz_alternate_button
),
cancelBox
.
addButton
(
"&"
+
qfu
(
p_dialog
->
psz_alternate_button
),
QMessageBox
::
RejectRole
);
if
(
p_dialog
->
psz_other_button
)
cancelBox
.
addButton
(
qfu
(
p_dialog
->
psz_other_button
),
cancelBox
.
addButton
(
"&"
+
qfu
(
p_dialog
->
psz_other_button
),
QMessageBox
::
ActionRole
);
i_ret
=
cancelBox
.
exec
();
...
...
@@ -164,19 +164,19 @@ InteractionDialog::InteractionDialog( intf_thread_t *_p_intf,
{
defaultButton
=
new
QPushButton
;
defaultButton
->
setFocus
();
defaultButton
->
setText
(
qfu
(
p_dialog
->
psz_default_button
)
);
defaultButton
->
setText
(
"&"
+
qfu
(
p_dialog
->
psz_default_button
)
);
buttonBox
->
addButton
(
defaultButton
,
QDialogButtonBox
::
AcceptRole
);
}
if
(
p_dialog
->
psz_alternate_button
)
{
altButton
=
new
QPushButton
;
altButton
->
setText
(
qfu
(
p_dialog
->
psz_alternate_button
)
);
altButton
->
setText
(
"&"
+
qfu
(
p_dialog
->
psz_alternate_button
)
);
buttonBox
->
addButton
(
altButton
,
QDialogButtonBox
::
RejectRole
);
}
if
(
p_dialog
->
psz_other_button
)
{
otherButton
=
new
QPushButton
;
otherButton
->
setText
(
qfu
(
p_dialog
->
psz_other_button
)
);
otherButton
->
setText
(
"&"
+
qfu
(
p_dialog
->
psz_other_button
)
);
buttonBox
->
addButton
(
otherButton
,
QDialogButtonBox
::
ActionRole
);
}
layout
->
addWidget
(
buttonBox
);
...
...
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