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
5b308d06
Commit
5b308d06
authored
Jul 20, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: add some missing const.
parent
ef60a430
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
21 deletions
+21
-21
modules/gui/qt4/dialogs_provider.cpp
modules/gui/qt4/dialogs_provider.cpp
+4
-4
modules/gui/qt4/dialogs_provider.hpp
modules/gui/qt4/dialogs_provider.hpp
+4
-4
modules/gui/qt4/input_manager.hpp
modules/gui/qt4/input_manager.hpp
+1
-1
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+9
-9
modules/gui/qt4/main_interface.hpp
modules/gui/qt4/main_interface.hpp
+3
-3
No files found.
modules/gui/qt4/dialogs_provider.cpp
View file @
5b308d06
...
@@ -373,9 +373,9 @@ void DialogsProvider::MLAppendDialog( int tab )
...
@@ -373,9 +373,9 @@ void DialogsProvider::MLAppendDialog( int tab )
/**
/**
* Simple open
* Simple open
***/
***/
QStringList
DialogsProvider
::
showSimpleOpen
(
QString
help
,
QStringList
DialogsProvider
::
showSimpleOpen
(
const
QString
&
help
,
int
filters
,
int
filters
,
QString
path
)
const
QString
&
path
)
{
{
QString
fileTypes
=
""
;
QString
fileTypes
=
""
;
if
(
filters
&
EXT_FILTER_MEDIA
)
{
if
(
filters
&
EXT_FILTER_MEDIA
)
{
...
@@ -565,7 +565,7 @@ void DialogsProvider::saveAPlaylist()
...
@@ -565,7 +565,7 @@ void DialogsProvider::saveAPlaylist()
****************************************************************************/
****************************************************************************/
void
DialogsProvider
::
streamingDialog
(
QWidget
*
parent
,
void
DialogsProvider
::
streamingDialog
(
QWidget
*
parent
,
QString
mrl
,
const
QString
&
mrl
,
bool
b_transcode_only
,
bool
b_transcode_only
,
QStringList
options
)
QStringList
options
)
{
{
...
@@ -686,7 +686,7 @@ void DialogsProvider::menuUpdateAction( QObject *data )
...
@@ -686,7 +686,7 @@ void DialogsProvider::menuUpdateAction( QObject *data )
func
->
doFunc
(
p_intf
);
func
->
doFunc
(
p_intf
);
}
}
void
DialogsProvider
::
SDMenuAction
(
QString
data
)
void
DialogsProvider
::
SDMenuAction
(
const
QString
&
data
)
{
{
char
*
psz_sd
=
strdup
(
qtu
(
data
)
);
char
*
psz_sd
=
strdup
(
qtu
(
data
)
);
if
(
!
playlist_IsServicesDiscoveryLoaded
(
THEPL
,
psz_sd
)
)
if
(
!
playlist_IsServicesDiscoveryLoaded
(
THEPL
,
psz_sd
)
)
...
...
modules/gui/qt4/dialogs_provider.hpp
View file @
5b308d06
...
@@ -112,11 +112,11 @@ public:
...
@@ -112,11 +112,11 @@ public:
return
(
instance
!=
NULL
);
return
(
instance
!=
NULL
);
}
}
QStringList
showSimpleOpen
(
QString
help
=
QString
(),
QStringList
showSimpleOpen
(
const
QString
&
help
=
QString
(),
int
filters
=
EXT_FILTER_MEDIA
|
int
filters
=
EXT_FILTER_MEDIA
|
EXT_FILTER_VIDEO
|
EXT_FILTER_AUDIO
|
EXT_FILTER_VIDEO
|
EXT_FILTER_AUDIO
|
EXT_FILTER_PLAYLIST
,
EXT_FILTER_PLAYLIST
,
QString
path
=
QString
()
);
const
QString
&
path
=
QString
()
);
bool
isDying
()
{
return
b_isDying
;
}
bool
isDying
()
{
return
b_isDying
;
}
protected:
protected:
QSignalMapper
*
menusMapper
;
QSignalMapper
*
menusMapper
;
...
@@ -179,7 +179,7 @@ public slots:
...
@@ -179,7 +179,7 @@ public slots:
void
PLAppendDir
();
void
PLAppendDir
();
void
MLAppendDir
();
void
MLAppendDir
();
void
streamingDialog
(
QWidget
*
parent
,
QString
mrl
,
bool
b_stream
=
true
,
void
streamingDialog
(
QWidget
*
parent
,
const
QString
&
mrl
,
bool
b_stream
=
true
,
QStringList
options
=
QStringList
(
""
)
);
QStringList
options
=
QStringList
(
""
)
);
void
openAndStreamingDialogs
();
void
openAndStreamingDialogs
();
void
openAndTranscodingDialogs
();
void
openAndTranscodingDialogs
();
...
@@ -193,7 +193,7 @@ public slots:
...
@@ -193,7 +193,7 @@ public slots:
private
slots
:
private
slots
:
void
menuAction
(
QObject
*
);
void
menuAction
(
QObject
*
);
void
menuUpdateAction
(
QObject
*
);
void
menuUpdateAction
(
QObject
*
);
void
SDMenuAction
(
QString
);
void
SDMenuAction
(
const
QString
&
);
signals:
signals:
void
toolBarConfUpdated
();
void
toolBarConfUpdated
();
};
};
...
...
modules/gui/qt4/input_manager.hpp
View file @
5b308d06
...
@@ -178,7 +178,7 @@ signals:
...
@@ -178,7 +178,7 @@ signals:
/// Send new position, new time and new length
/// Send new position, new time and new length
void
positionUpdated
(
float
,
int
,
int
);
void
positionUpdated
(
float
,
int
,
int
);
void
rateChanged
(
int
);
void
rateChanged
(
int
);
void
nameChanged
(
QString
);
void
nameChanged
(
const
QString
&
);
/// Used to signal whether we should show navigation buttons
/// Used to signal whether we should show navigation buttons
void
titleChanged
(
bool
);
void
titleChanged
(
bool
);
void
chapterChanged
(
bool
);
void
chapterChanged
(
bool
);
...
...
modules/gui/qt4/main_interface.cpp
View file @
5b308d06
...
@@ -178,19 +178,19 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
...
@@ -178,19 +178,19 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
* them down.
* them down.
*/
*/
/* Naming in the controller statusbar */
/* Naming in the controller statusbar */
CONNECT
(
THEMIM
->
getIM
(),
nameChanged
(
QString
),
CONNECT
(
THEMIM
->
getIM
(),
nameChanged
(
const
QString
&
),
this
,
setName
(
QString
)
);
this
,
setName
(
const
QString
&
)
);
/* and in the systray */
/* and in the systray */
if
(
sysTray
)
if
(
sysTray
)
{
{
CONNECT
(
THEMIM
->
getIM
(),
nameChanged
(
QString
),
this
,
CONNECT
(
THEMIM
->
getIM
(),
nameChanged
(
const
QString
&
),
this
,
updateSystrayTooltipName
(
QString
)
);
updateSystrayTooltipName
(
const
QString
&
)
);
}
}
/* and in the title of the controller */
/* and in the title of the controller */
if
(
config_GetInt
(
p_intf
,
"qt-name-in-title"
)
)
if
(
config_GetInt
(
p_intf
,
"qt-name-in-title"
)
)
{
{
CONNECT
(
THEMIM
->
getIM
(),
nameChanged
(
QString
),
this
,
CONNECT
(
THEMIM
->
getIM
(),
nameChanged
(
const
QString
&
),
this
,
setVLCWindowsTitle
(
QString
)
);
setVLCWindowsTitle
(
const
QString
&
)
);
}
}
/**
/**
...
@@ -910,7 +910,7 @@ void MainInterface::visual()
...
@@ -910,7 +910,7 @@ void MainInterface::visual()
/************************************************************************
/************************************************************************
* Other stuff
* Other stuff
************************************************************************/
************************************************************************/
void
MainInterface
::
setName
(
QString
name
)
void
MainInterface
::
setName
(
const
QString
&
name
)
{
{
input_name
=
name
;
/* store it for the QSystray use */
input_name
=
name
;
/* store it for the QSystray use */
/* Display it in the status bar, but also as a Tooltip in case it doesn't
/* Display it in the status bar, but also as a Tooltip in case it doesn't
...
@@ -923,7 +923,7 @@ void MainInterface::setName( QString name )
...
@@ -923,7 +923,7 @@ void MainInterface::setName( QString name )
* Give the decorations of the Main Window a correct Name.
* Give the decorations of the Main Window a correct Name.
* If nothing is given, set it to VLC...
* If nothing is given, set it to VLC...
**/
**/
void
MainInterface
::
setVLCWindowsTitle
(
QString
aTitle
)
void
MainInterface
::
setVLCWindowsTitle
(
const
QString
&
aTitle
)
{
{
if
(
aTitle
.
isEmpty
()
)
if
(
aTitle
.
isEmpty
()
)
{
{
...
@@ -1048,7 +1048,7 @@ void MainInterface::handleSystrayClick(
...
@@ -1048,7 +1048,7 @@ void MainInterface::handleSystrayClick(
* Updates the name of the systray Icon tooltip.
* Updates the name of the systray Icon tooltip.
* Doesn't check if the systray exists, check before you call it.
* Doesn't check if the systray exists, check before you call it.
**/
**/
void
MainInterface
::
updateSystrayTooltipName
(
QString
name
)
void
MainInterface
::
updateSystrayTooltipName
(
const
QString
&
name
)
{
{
if
(
name
.
isEmpty
()
)
if
(
name
.
isEmpty
()
)
{
{
...
...
modules/gui/qt4/main_interface.hpp
View file @
5b308d06
...
@@ -167,13 +167,13 @@ private slots:
...
@@ -167,13 +167,13 @@ private slots:
void
destroyPopupMenu
();
void
destroyPopupMenu
();
void
recreateToolbars
();
void
recreateToolbars
();
void
doComponentsUpdate
();
void
doComponentsUpdate
();
void
setName
(
QString
);
void
setName
(
const
QString
&
);
void
setVLCWindowsTitle
(
QString
title
=
""
);
void
setVLCWindowsTitle
(
const
QString
&
title
=
""
);
#if 0
#if 0
void visual();
void visual();
#endif
#endif
void
handleSystrayClick
(
QSystemTrayIcon
::
ActivationReason
);
void
handleSystrayClick
(
QSystemTrayIcon
::
ActivationReason
);
void
updateSystrayTooltipName
(
QString
);
void
updateSystrayTooltipName
(
const
QString
&
);
void
updateSystrayTooltipStatus
(
int
);
void
updateSystrayTooltipStatus
(
int
);
void
showCryptedLabel
(
bool
);
void
showCryptedLabel
(
bool
);
...
...
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