Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
08016364
Commit
08016364
authored
Jul 26, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix configure hotkeys behaviour on keyboard seection.
Close #1773
parent
76081cde
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
modules/gui/qt4/components/preferences_widgets.cpp
modules/gui/qt4/components/preferences_widgets.cpp
+5
-3
modules/gui/qt4/components/preferences_widgets.hpp
modules/gui/qt4/components/preferences_widgets.hpp
+1
-1
No files found.
modules/gui/qt4/components/preferences_widgets.cpp
View file @
08016364
...
@@ -1193,16 +1193,18 @@ void KeySelectorControl::finish()
...
@@ -1193,16 +1193,18 @@ void KeySelectorControl::finish()
table
->
resizeColumnToContents
(
0
);
table
->
resizeColumnToContents
(
0
);
CONNECT
(
table
,
itemClicked
(
QTreeWidgetItem
*
,
int
),
this
,
select1Key
(
QTreeWidgetItem
*
)
);
CONNECT
(
table
,
itemDoubleClicked
(
QTreeWidgetItem
*
,
int
),
CONNECT
(
table
,
itemDoubleClicked
(
QTreeWidgetItem
*
,
int
),
this
,
selectKey
(
QTreeWidgetItem
*
)
);
this
,
selectKey
(
QTreeWidgetItem
*
)
);
CONNECT
(
table
,
itemSelectionChanged
(),
this
,
select1Key
()
);
CONNECT
(
shortcutValue
,
pressed
(),
this
,
selectKey
()
);
CONNECT
(
shortcutValue
,
pressed
(),
this
,
selectKey
()
);
}
}
/* Show the key selected from the table in the keySelector */
/* Show the key selected from the table in the keySelector */
void
KeySelectorControl
::
select1Key
(
QTreeWidgetItem
*
keyItem
)
void
KeySelectorControl
::
select1Key
()
{
{
QTreeWidgetItem
*
keyItem
=
table
->
currentItem
();
shortcutValue
->
setText
(
keyItem
->
text
(
1
)
);
shortcutValue
->
setText
(
keyItem
->
text
(
1
)
);
shortcutValue
->
setValue
(
keyItem
->
data
(
1
,
Qt
::
UserRole
).
toInt
()
);
shortcutValue
->
setValue
(
keyItem
->
data
(
1
,
Qt
::
UserRole
).
toInt
()
);
}
}
...
...
modules/gui/qt4/components/preferences_widgets.hpp
View file @
08016364
...
@@ -457,7 +457,7 @@ private:
...
@@ -457,7 +457,7 @@ private:
private
slots
:
private
slots
:
void
setTheKey
();
void
setTheKey
();
void
selectKey
(
QTreeWidgetItem
*
=
NULL
);
void
selectKey
(
QTreeWidgetItem
*
=
NULL
);
void
select1Key
(
QTreeWidgetItem
*
);
void
select1Key
();
};
};
class
KeyInputDialog
:
public
QDialog
class
KeyInputDialog
:
public
QDialog
...
...
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