Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
fb48e363
Commit
fb48e363
authored
Nov 12, 2010
by
Juho Vähä-Herttua
Committed by
Rémi Denis-Courmont
Nov 13, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qt4: Get rid of towlower in favor of portability
Signed-off-by:
Rémi Denis-Courmont
<
remi@remlab.net
>
parent
6b42661f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
modules/gui/qt4/util/customwidgets.cpp
modules/gui/qt4/util/customwidgets.cpp
+7
-6
No files found.
modules/gui/qt4/util/customwidgets.cpp
View file @
fb48e363
...
...
@@ -424,12 +424,13 @@ int qtEventToVLCKey( QKeyEvent *e )
uint32_t
i_vlck
=
0
;
if
(
qtk
<=
0xff
)
/* VLC and X11 use lowercase whereas Qt uses uppercase */
#if defined( __STDC_ISO_10646__ ) || defined( _WIN32 ) || defined( __APPLE__ )
i_vlck
=
towlower
(
qtk
);
#else
# error FIXME
#endif
{
/* VLC and X11 use lowercase whereas Qt uses uppercase, this
* method should be equal to towlower in case of latin1 */
if
(
qtk
>=
'A'
&&
qtk
<=
'Z'
)
i_vlck
=
qtk
+
32
;
else
if
(
qtk
>=
0xC0
&&
qtk
<=
0xDE
&&
qtk
!=
0xD7
)
i_vlck
=
qtk
+
32
;
else
i_vlck
=
qtk
;
}
else
{
const
vlc_qt_key_t
*
map
;
...
...
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