Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
ad74fb3b
Commit
ad74fb3b
authored
Sep 08, 2007
by
Jean-Baptiste Kempf
Browse files
Qt4 - Cleanups, simplifications. Public=>Private for slots.
parent
42e7ea08
Changes
5
Hide whitespace changes
Inline
Side-by-side
modules/gui/qt4/dialogs/mediainfo.cpp
View file @
ad74fb3b
...
...
@@ -204,7 +204,7 @@ void MediaInfoDialog::close()
MP
->
setEditMode
(
false
);
}
void
MediaInfoDialog
::
(
int
i_tab
)
void
MediaInfoDialog
::
updateButtons
(
int
i_tab
)
{
if
(
MP
->
isInEditMode
()
&&
i_tab
==
0
)
saveMetaButton
->
show
();
...
...
modules/gui/qt4/dialogs/podcast_configuration.cpp
View file @
ad74fb3b
...
...
@@ -27,6 +27,7 @@ PodcastConfigurationDialog::PodcastConfigurationDialog( intf_thread_t *_p_intf )
:
p_intf
(
_p_intf
)
{
ui
.
setupUi
(
this
);
QPushButton
*
okButton
=
new
QPushButton
(
qtr
(
"OK"
),
this
);
QPushButton
*
cancelButton
=
new
QPushButton
(
qtr
(
"Cancel"
),
this
);
ui
.
okCancel
->
addButton
(
okButton
,
QDialogButtonBox
::
AcceptRole
);
...
...
modules/gui/qt4/dialogs/sout.cpp
View file @
ad74fb3b
...
...
@@ -133,7 +133,7 @@ SoutDialog::SoutDialog( QWidget *parent, intf_thread_t *_p_intf,
QString
SoutDialog
::
getMrl
()
{
return
this
->
mrl
;
return
mrl
;
}
void
SoutDialog
::
fileBrowse
()
...
...
modules/gui/qt4/dialogs/sout.hpp
View file @
ad74fb3b
...
...
@@ -43,20 +43,23 @@ public:
bool
_transcode_only
=
false
);
virtual
~
SoutDialog
()
{}
QString
getMrl
();
QString
mrl
;
QString
getMrl
();
//sout_gui_descr_t *sout;
private:
Ui
::
Sout
ui
;
QPushButton
*
okButton
;
QString
mrl
;
bool
b_transcode_only
;
public
slots
:
void
updateMRL
();
private
slots
:
void
ok
();
void
cancel
();
void
updateMRL
();
void
fileBrowse
();
void
toggleSout
();
void
setOptions
();
void
fileBrowse
();
void
setVTranscodeOptions
(
bool
);
void
setATranscodeOptions
(
bool
);
void
setSTranscodeOptions
(
bool
);
...
...
modules/gui/qt4/dialogs_provider.cpp
View file @
ad74fb3b
...
...
@@ -396,11 +396,11 @@ void DialogsProvider::streamingDialog( QString mrl, bool b_transcode_only )
b_transcode_only
);
if
(
s
->
exec
()
==
QDialog
::
Accepted
)
{
msg_Err
(
p_intf
,
"mrl %s
\n
"
,
qta
(
s
->
mrl
)
);
msg_Err
(
p_intf
,
"mrl %s
\n
"
,
qta
(
s
->
getMrl
()
)
);
/* Just do it */
int
i_len
=
strlen
(
qtu
(
s
->
mrl
)
)
+
10
;
int
i_len
=
strlen
(
qtu
(
s
->
getMrl
()
)
)
+
10
;
char
*
psz_option
=
(
char
*
)
malloc
(
i_len
);
snprintf
(
psz_option
,
i_len
-
1
,
"%s"
,
qtu
(
s
->
mrl
)
);
snprintf
(
psz_option
,
i_len
-
1
,
"%s"
,
qtu
(
s
->
getMrl
()
)
);
playlist_AddExt
(
THEPL
,
qtu
(
mrl
),
"Streaming"
,
PLAYLIST_APPEND
|
PLAYLIST_GO
,
PLAYLIST_END
,
...
...
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