Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
0ea61050
Commit
0ea61050
authored
Feb 07, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt Fix profile edition and saving. Close #2477
parent
2fb77408
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
9 deletions
+8
-9
modules/gui/qt4/components/sout/profile_selector.cpp
modules/gui/qt4/components/sout/profile_selector.cpp
+2
-1
modules/gui/qt4/components/sout/profile_selector.hpp
modules/gui/qt4/components/sout/profile_selector.hpp
+1
-1
modules/gui/qt4/util/qvlcframe.hpp
modules/gui/qt4/util/qvlcframe.hpp
+5
-7
No files found.
modules/gui/qt4/components/sout/profile_selector.cpp
View file @
0ea61050
...
...
@@ -58,6 +58,7 @@ inline void VLCProfileSelector::fillProfilesCombo()
for
(
int
i
=
0
;
i
<
i_size
;
i
++
)
{
settings
.
setArrayIndex
(
i
);
if
(
settings
.
value
(
"Profile-Name"
).
toString
().
isEmpty
()
)
continue
;
profileBox
->
addItem
(
settings
.
value
(
"Profile-Name"
).
toString
(),
settings
.
value
(
"Profile-Value"
)
);
}
...
...
@@ -204,7 +205,7 @@ VLCProfileEditor::VLCProfileEditor( QString qs_name, QString value,
inline
void
VLCProfileEditor
::
registerCodecs
()
{
#define ADD_VCODEC( name, fourcc ) ui.vCodecBox->addItem( name, QVariant( fourcc ) );
ADD_VCODEC
(
"MPEG-1"
,
"mp1v"
)
ADD_VCODEC
(
"MPEG-2"
,
"mp2v"
)
...
...
modules/gui/qt4/components/sout/profile_selector.hpp
View file @
0ea61050
...
...
@@ -70,7 +70,7 @@ public:
private:
void
registerCodecs
();
void
fillProfile
(
QString
qs
);
protected:
protected
slots
:
virtual
void
close
();
private
slots
:
void
setVTranscodeOptions
(
bool
);
...
...
modules/gui/qt4/util/qvlcframe.hpp
View file @
0ea61050
...
...
@@ -155,13 +155,13 @@ protected:
{
if
(
keyEvent
->
key
()
==
Qt
::
Key_Escape
)
{
cancel
();
this
->
cancel
();
}
else
if
(
keyEvent
->
key
()
==
Qt
::
Key_Return
||
keyEvent
->
key
()
==
Qt
::
Key_Enter
)
{
close
();
}
this
->
close
();
}
}
};
...
...
@@ -193,14 +193,12 @@ protected:
{
if
(
keyEvent
->
key
()
==
Qt
::
Key_Escape
)
{
msg_Dbg
(
p_intf
,
"Escp Key pressed"
);
cancel
();
this
->
cancel
();
}
else
if
(
keyEvent
->
key
()
==
Qt
::
Key_Return
||
keyEvent
->
key
()
==
Qt
::
Key_Enter
)
{
msg_Dbg
(
p_intf
,
"Enter Key pressed"
);
close
();
this
->
close
();
}
}
};
...
...
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