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
9ad1dde8
Commit
9ad1dde8
authored
Mar 31, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qt4: missing const for QString.
parent
0ca0b5f9
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
36 additions
and
36 deletions
+36
-36
modules/gui/qt4/components/extended_panels.cpp
modules/gui/qt4/components/extended_panels.cpp
+3
-3
modules/gui/qt4/components/open_panels.cpp
modules/gui/qt4/components/open_panels.cpp
+11
-11
modules/gui/qt4/components/open_panels.hpp
modules/gui/qt4/components/open_panels.hpp
+2
-2
modules/gui/qt4/components/playlist/panels.hpp
modules/gui/qt4/components/playlist/panels.hpp
+1
-1
modules/gui/qt4/components/playlist/standardpanel.cpp
modules/gui/qt4/components/playlist/standardpanel.cpp
+2
-2
modules/gui/qt4/components/sout/sout_widgets.cpp
modules/gui/qt4/components/sout/sout_widgets.cpp
+1
-1
modules/gui/qt4/dialogs/open.cpp
modules/gui/qt4/dialogs/open.cpp
+9
-9
modules/gui/qt4/dialogs/plugins.cpp
modules/gui/qt4/dialogs/plugins.cpp
+1
-1
modules/gui/qt4/dialogs/sout.cpp
modules/gui/qt4/dialogs/sout.cpp
+1
-1
modules/gui/qt4/util/customwidgets.cpp
modules/gui/qt4/util/customwidgets.cpp
+3
-3
modules/gui/qt4/util/customwidgets.hpp
modules/gui/qt4/util/customwidgets.hpp
+2
-2
No files found.
modules/gui/qt4/components/extended_panels.cpp
View file @
9ad1dde8
...
...
@@ -133,10 +133,10 @@ ExtVideo::ExtVideo( intf_thread_t *_p_intf, QTabWidget *_parent ) :
SETUP_VFILTER_OPTION
(
brightnessThresholdCheck
,
stateChanged
(
int
)
)
SETUP_VFILTER
(
extract
)
SETUP_VFILTER_OPTION
(
extractComponentText
,
textChanged
(
QString
)
)
SETUP_VFILTER_OPTION
(
extractComponentText
,
textChanged
(
const
QString
&
)
)
SETUP_VFILTER
(
colorthres
)
SETUP_VFILTER_OPTION
(
colorthresColorText
,
textChanged
(
QString
)
)
SETUP_VFILTER_OPTION
(
colorthresColorText
,
textChanged
(
const
QString
&
)
)
SETUP_VFILTER_OPTION
(
colorthresSaturationthresSlider
,
valueChanged
(
int
)
)
SETUP_VFILTER_OPTION
(
colorthresSimilaritythresSlider
,
valueChanged
(
int
)
)
...
...
@@ -196,7 +196,7 @@ ExtVideo::ExtVideo( intf_thread_t *_p_intf, QTabWidget *_parent ) :
SETUP_VFILTER_OPTION
(
eraseXSpin
,
valueChanged
(
int
)
)
SETUP_VFILTER
(
marq
)
SETUP_VFILTER_OPTION
(
marqMarqueeText
,
textChanged
(
QString
)
)
SETUP_VFILTER_OPTION
(
marqMarqueeText
,
textChanged
(
const
QString
&
)
)
SETUP_VFILTER_OPTION
(
marqPositionCombo
,
currentIndexChanged
(
QString
)
)
SETUP_VFILTER
(
logo
)
...
...
modules/gui/qt4/components/open_panels.cpp
View file @
9ad1dde8
...
...
@@ -99,7 +99,7 @@ FileOpenPanel::FileOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
CONNECT
(
ui
.
subCheckBox
,
toggled
(
bool
),
this
,
toggleSubtitleFrame
(
bool
)
);
CONNECT
(
ui
.
fileListWidg
,
itemChanged
(
QListWidgetItem
*
),
this
,
updateMRL
()
);
CONNECT
(
ui
.
subInput
,
textChanged
(
QString
),
this
,
updateMRL
()
);
CONNECT
(
ui
.
subInput
,
textChanged
(
const
QString
&
),
this
,
updateMRL
()
);
CONNECT
(
ui
.
alignSubComboBox
,
currentIndexChanged
(
int
),
this
,
updateMRL
()
);
CONNECT
(
ui
.
sizeSubComboBox
,
currentIndexChanged
(
int
),
this
,
updateMRL
()
);
}
...
...
@@ -151,7 +151,7 @@ inline void FileOpenPanel::BuildOldPanel()
// Add the DialogBox to the layout
ui
.
gridLayout
->
addWidget
(
dialogBox
,
0
,
0
,
1
,
3
);
CONNECT
(
lineFileEdit
,
textChanged
(
QString
),
this
,
updateMRL
()
);
CONNECT
(
lineFileEdit
,
textChanged
(
const
QString
&
),
this
,
updateMRL
()
);
dialogBox
->
installEventFilter
(
this
);
}
...
...
@@ -474,7 +474,7 @@ NetOpenPanel::NetOpenPanel( QWidget *_parent, intf_thread_t *_p_intf ) :
CONNECT
(
ui
.
protocolCombo
,
activated
(
int
),
this
,
updateProtocol
(
int
)
);
CONNECT
(
ui
.
portSpin
,
valueChanged
(
int
),
this
,
updateMRL
()
);
CONNECT
(
ui
.
addressText
,
textChanged
(
QString
),
this
,
updateMRL
());
CONNECT
(
ui
.
addressText
,
textChanged
(
const
QString
&
),
this
,
updateMRL
());
ui
.
protocolCombo
->
addItem
(
""
);
ui
.
protocolCombo
->
addItem
(
"HTTP"
,
QVariant
(
"http"
));
...
...
@@ -700,7 +700,7 @@ void CaptureOpenPanel::initialize()
/* dshow CONNECTs */
CuMRL
(
vdevDshowW
->
combo
,
currentIndexChanged
(
int
)
);
CuMRL
(
adevDshowW
->
combo
,
currentIndexChanged
(
int
)
);
CuMRL
(
dshowVSizeLine
,
textChanged
(
QString
)
);
CuMRL
(
dshowVSizeLine
,
textChanged
(
const
QString
&
)
);
}
/**************
...
...
@@ -802,8 +802,8 @@ void CaptureOpenPanel::initialize()
1
,
0
,
3
,
1
);
/* v4l2 CONNECTs */
CuMRL
(
v4l2VideoDevice
,
textChanged
(
QString
)
);
CuMRL
(
v4l2AudioDevice
,
textChanged
(
QString
)
);
CuMRL
(
v4l2VideoDevice
,
textChanged
(
const
QString
&
)
);
CuMRL
(
v4l2AudioDevice
,
textChanged
(
const
QString
&
)
);
CuMRL
(
v4l2StdBox
,
currentIndexChanged
(
int
)
);
}
...
...
@@ -846,8 +846,8 @@ void CaptureOpenPanel::initialize()
2
,
0
,
2
,
1
);
/* v4l CONNECTs */
CuMRL
(
v4lVideoDevice
,
textChanged
(
QString
)
);
CuMRL
(
v4lAudioDevice
,
textChanged
(
QString
)
);
CuMRL
(
v4lVideoDevice
,
textChanged
(
const
QString
&
)
);
CuMRL
(
v4lAudioDevice
,
textChanged
(
const
QString
&
)
);
CuMRL
(
v4lFreq
,
valueChanged
(
int
)
);
CuMRL
(
v4lNormBox
,
currentIndexChanged
(
int
)
);
}
...
...
@@ -903,7 +903,7 @@ void CaptureOpenPanel::initialize()
CuMRL
(
jackCaching
,
valueChanged
(
int
)
);
CuMRL
(
jackPace
,
stateChanged
(
int
)
);
CuMRL
(
jackConnect
,
stateChanged
(
int
)
);
CuMRL
(
jackPortsSelected
,
textChanged
(
QString
)
);
CuMRL
(
jackPortsSelected
,
textChanged
(
const
QString
&
)
);
}
/************
...
...
@@ -954,8 +954,8 @@ void CaptureOpenPanel::initialize()
3
,
0
,
1
,
1
);
/* PVR CONNECTs */
CuMRL
(
pvrDevice
,
textChanged
(
QString
)
);
CuMRL
(
pvrRadioDevice
,
textChanged
(
QString
)
);
CuMRL
(
pvrDevice
,
textChanged
(
const
QString
&
)
);
CuMRL
(
pvrRadioDevice
,
textChanged
(
const
QString
&
)
);
CuMRL
(
pvrFreq
,
valueChanged
(
int
)
);
CuMRL
(
pvrBitr
,
valueChanged
(
int
)
);
...
...
modules/gui/qt4/components/open_panels.hpp
View file @
9ad1dde8
...
...
@@ -91,8 +91,8 @@ protected:
public
slots
:
virtual
void
updateMRL
()
=
0
;
signals:
void
mrlUpdated
(
QStringList
,
QString
);
void
methodChanged
(
QString
method
);
void
mrlUpdated
(
const
QStringList
&
,
const
QString
&
);
void
methodChanged
(
const
QString
&
method
);
};
class
FileOpenBox
:
public
QFileDialog
...
...
modules/gui/qt4/components/playlist/panels.hpp
View file @
9ad1dde8
...
...
@@ -86,7 +86,7 @@ private slots:
void
toggleRepeat
();
void
gotoPlayingItem
();
void
doPopup
(
QModelIndex
index
,
QPoint
point
);
void
search
(
QString
search
);
void
search
(
const
QString
&
searchText
);
void
setCurrentRootId
(
int
);
void
popupAdd
();
void
popupSelectColumn
(
QPoint
);
...
...
modules/gui/qt4/components/playlist/standardpanel.cpp
View file @
9ad1dde8
...
...
@@ -162,7 +162,7 @@ StandardPLPanel::StandardPLPanel( PlaylistWidget *_parent,
SearchLineEdit
*
search
=
new
SearchLineEdit
(
this
);
buttons
->
addWidget
(
search
);
filter
->
setBuddy
(
search
);
CONNECT
(
search
,
textChanged
(
QString
),
this
,
search
(
QString
)
);
CONNECT
(
search
,
textChanged
(
const
QString
&
),
this
,
search
(
const
QString
&
)
);
/* Finish the layout */
layout
->
addWidget
(
view
);
...
...
@@ -278,7 +278,7 @@ void StandardPLPanel::popupSelectColumn( QPoint pos )
}
/* Search in the playlist */
void
StandardPLPanel
::
search
(
QString
searchText
)
void
StandardPLPanel
::
search
(
const
QString
&
searchText
)
{
model
->
search
(
searchText
);
}
...
...
modules/gui/qt4/components/sout/sout_widgets.cpp
View file @
9ad1dde8
...
...
@@ -76,7 +76,7 @@ void SoutInputBox::setMRL( const QString& mrl )
sourceValueLabel
->
setText
(
type
);
}
#define CT( x ) connect( x, SIGNAL( textChanged( const QString ) ), this, SIGNAL( mrlUpdated() ) );
#define CT( x ) connect( x, SIGNAL( textChanged( const QString
&
) ), this, SIGNAL( mrlUpdated() ) );
#define CS( x ) connect( x, SIGNAL( valueChanged( int ) ), this, SIGNAL( mrlUpdated() ) );
/* FileDest Box */
...
...
modules/gui/qt4/dialogs/open.cpp
View file @
9ad1dde8
...
...
@@ -142,27 +142,27 @@ OpenDialog::OpenDialog( QWidget *parent,
/* Force MRL update on tab change */
CONNECT
(
ui
.
Tab
,
currentChanged
(
int
),
this
,
signalCurrent
(
int
)
);
CONNECT
(
fileOpenPanel
,
mrlUpdated
(
QStringList
,
QString
),
CONNECT
(
fileOpenPanel
,
mrlUpdated
(
const
QStringList
&
,
const
QString
&
),
this
,
updateMRL
(
const
QStringList
&
,
const
QString
&
)
);
CONNECT
(
netOpenPanel
,
mrlUpdated
(
QStringList
,
QString
),
CONNECT
(
netOpenPanel
,
mrlUpdated
(
const
QStringList
&
,
const
QString
&
),
this
,
updateMRL
(
const
QStringList
&
,
const
QString
&
)
);
CONNECT
(
discOpenPanel
,
mrlUpdated
(
QStringList
,
QString
),
CONNECT
(
discOpenPanel
,
mrlUpdated
(
const
QStringList
&
,
const
QString
&
),
this
,
updateMRL
(
const
QStringList
&
,
const
QString
&
)
);
CONNECT
(
captureOpenPanel
,
mrlUpdated
(
QStringList
,
QString
),
CONNECT
(
captureOpenPanel
,
mrlUpdated
(
const
QStringList
&
,
const
QString
&
),
this
,
updateMRL
(
const
QStringList
&
,
const
QString
&
)
);
CONNECT
(
fileOpenPanel
,
methodChanged
(
QString
),
CONNECT
(
fileOpenPanel
,
methodChanged
(
const
QString
&
),
this
,
newCachingMethod
(
const
QString
&
)
);
CONNECT
(
netOpenPanel
,
methodChanged
(
QString
),
CONNECT
(
netOpenPanel
,
methodChanged
(
const
QString
&
),
this
,
newCachingMethod
(
const
QString
&
)
);
CONNECT
(
discOpenPanel
,
methodChanged
(
QString
),
CONNECT
(
discOpenPanel
,
methodChanged
(
const
QString
&
),
this
,
newCachingMethod
(
const
QString
&
)
);
CONNECT
(
captureOpenPanel
,
methodChanged
(
QString
),
CONNECT
(
captureOpenPanel
,
methodChanged
(
const
QString
&
),
this
,
newCachingMethod
(
const
QString
&
)
);
/* Advanced frame Connects */
CONNECT
(
ui
.
slaveCheckbox
,
toggled
(
bool
),
this
,
updateMRL
()
);
CONNECT
(
ui
.
slaveText
,
textChanged
(
QString
),
this
,
updateMRL
()
);
CONNECT
(
ui
.
slaveText
,
textChanged
(
const
QString
&
),
this
,
updateMRL
()
);
CONNECT
(
ui
.
cacheSpinBox
,
valueChanged
(
int
),
this
,
updateMRL
()
);
CONNECT
(
ui
.
startTimeSpinBox
,
valueChanged
(
int
),
this
,
updateMRL
()
);
BUTTONACT
(
ui
.
advancedCheckBox
,
toggleAdvancedPanel
()
);
...
...
modules/gui/qt4/dialogs/plugins.cpp
View file @
9ad1dde8
...
...
@@ -76,7 +76,7 @@ PluginDialog::PluginDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
layout
->
addWidget
(
label
,
1
,
0
);
layout
->
addWidget
(
edit
,
1
,
1
,
1
,
-
1
);
CONNECT
(
edit
,
textChanged
(
QString
),
CONNECT
(
edit
,
textChanged
(
const
QString
&
),
this
,
search
(
const
QString
&
)
);
QDialogButtonBox
*
box
=
new
QDialogButtonBox
;
...
...
modules/gui/qt4/dialogs/sout.cpp
View file @
9ad1dde8
...
...
@@ -80,7 +80,7 @@ SoutDialog::SoutDialog( QWidget *parent, intf_thread_t *_p_intf, const QString&
// /* Connect everything to the updateMRL function */
#define CB( x ) CONNECT( ui.x, toggled( bool ), this, updateMRL() );
#define CT( x ) CONNECT( ui.x, textChanged( const QString ), this, updateMRL() );
#define CT( x ) CONNECT( ui.x, textChanged( const QString
&
), this, updateMRL() );
#define CS( x ) CONNECT( ui.x, valueChanged( int ), this, updateMRL() );
#define CC( x ) CONNECT( ui.x, currentIndexChanged( int ), this, updateMRL() );
...
...
modules/gui/qt4/util/customwidgets.cpp
View file @
9ad1dde8
...
...
@@ -125,8 +125,8 @@ SearchLineEdit::SearchLineEdit( QWidget *parent ) : QFrame( parent )
searchLine
->
setFrame
(
false
);
searchLine
->
setMinimumWidth
(
80
);
CONNECT
(
searchLine
,
textChanged
(
const
QString
),
this
,
updateText
(
const
QString
)
);
CONNECT
(
searchLine
,
textChanged
(
const
QString
&
),
this
,
updateText
(
const
QString
&
)
);
frameLayout
->
addWidget
(
searchLine
);
clearButton
=
new
QToolButton
;
...
...
@@ -140,7 +140,7 @@ SearchLineEdit::SearchLineEdit( QWidget *parent ) : QFrame( parent )
frameLayout
->
addWidget
(
clearButton
);
}
void
SearchLineEdit
::
updateText
(
const
QString
text
)
void
SearchLineEdit
::
updateText
(
const
QString
&
text
)
{
clearButton
->
setVisible
(
!
text
.
isEmpty
()
);
emit
textChanged
(
text
);
...
...
modules/gui/qt4/util/customwidgets.hpp
View file @
9ad1dde8
...
...
@@ -68,10 +68,10 @@ private:
QToolButton
*
clearButton
;
private
slots
:
void
updateText
(
const
QString
);
void
updateText
(
const
QString
&
);
signals:
void
textChanged
(
const
QString
);
void
textChanged
(
const
QString
&
);
};
/*****************************************************************
...
...
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