Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
a8242d18
Commit
a8242d18
authored
Mar 26, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qt4: use const for QString when possible.
parent
84bf3811
Changes
17
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
39 additions
and
39 deletions
+39
-39
modules/gui/qt4/components/info_panels.cpp
modules/gui/qt4/components/info_panels.cpp
+2
-2
modules/gui/qt4/components/info_panels.hpp
modules/gui/qt4/components/info_panels.hpp
+1
-1
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.cpp
+4
-4
modules/gui/qt4/components/interface_widgets.hpp
modules/gui/qt4/components/interface_widgets.hpp
+2
-2
modules/gui/qt4/dialogs/convert.cpp
modules/gui/qt4/dialogs/convert.cpp
+1
-1
modules/gui/qt4/dialogs/convert.hpp
modules/gui/qt4/dialogs/convert.hpp
+1
-1
modules/gui/qt4/dialogs/errors.cpp
modules/gui/qt4/dialogs/errors.cpp
+2
-2
modules/gui/qt4/dialogs/errors.hpp
modules/gui/qt4/dialogs/errors.hpp
+2
-2
modules/gui/qt4/dialogs/mediainfo.cpp
modules/gui/qt4/dialogs/mediainfo.cpp
+1
-1
modules/gui/qt4/dialogs/open.cpp
modules/gui/qt4/dialogs/open.cpp
+11
-11
modules/gui/qt4/dialogs/open.hpp
modules/gui/qt4/dialogs/open.hpp
+3
-3
modules/gui/qt4/dialogs/plugins.cpp
modules/gui/qt4/dialogs/plugins.cpp
+2
-2
modules/gui/qt4/dialogs/plugins.hpp
modules/gui/qt4/dialogs/plugins.hpp
+1
-1
modules/gui/qt4/dialogs/sout.cpp
modules/gui/qt4/dialogs/sout.cpp
+1
-1
modules/gui/qt4/dialogs/sout.hpp
modules/gui/qt4/dialogs/sout.hpp
+1
-1
modules/gui/qt4/dialogs/toolbar.cpp
modules/gui/qt4/dialogs/toolbar.cpp
+2
-2
modules/gui/qt4/dialogs/toolbar.hpp
modules/gui/qt4/dialogs/toolbar.hpp
+2
-2
No files found.
modules/gui/qt4/components/info_panels.cpp
View file @
a8242d18
...
@@ -197,13 +197,13 @@ void MetaPanel::update( input_item_t *p_item )
...
@@ -197,13 +197,13 @@ void MetaPanel::update( input_item_t *p_item )
/* URL / URI */
/* URL / URI */
psz_meta
=
input_item_GetURL
(
p_item
);
psz_meta
=
input_item_GetURL
(
p_item
);
if
(
!
EMPTY_STR
(
psz_meta
)
)
if
(
!
EMPTY_STR
(
psz_meta
)
)
emit
uriSet
(
QString
(
psz_meta
)
);
emit
uriSet
(
psz_meta
);
else
else
{
{
free
(
psz_meta
);
free
(
psz_meta
);
psz_meta
=
input_item_GetURI
(
p_item
);
psz_meta
=
input_item_GetURI
(
p_item
);
if
(
!
EMPTY_STR
(
psz_meta
)
)
if
(
!
EMPTY_STR
(
psz_meta
)
)
emit
uriSet
(
QString
(
psz_meta
)
);
emit
uriSet
(
psz_meta
);
}
}
free
(
psz_meta
);
free
(
psz_meta
);
...
...
modules/gui/qt4/components/info_panels.hpp
View file @
a8242d18
...
@@ -89,7 +89,7 @@ private slots:
...
@@ -89,7 +89,7 @@ private slots:
void
enterEditMode
();
void
enterEditMode
();
signals:
signals:
void
uriSet
(
QString
);
void
uriSet
(
const
QString
&
);
void
editing
();
void
editing
();
};
};
...
...
modules/gui/qt4/components/interface_widgets.cpp
View file @
a8242d18
...
@@ -185,7 +185,7 @@ BackgroundWidget::BackgroundWidget( intf_thread_t *_p_i )
...
@@ -185,7 +185,7 @@ BackgroundWidget::BackgroundWidget( intf_thread_t *_p_i )
backgroundLayout
->
setColumnStretch
(
2
,
1
);
backgroundLayout
->
setColumnStretch
(
2
,
1
);
CONNECT
(
THEMIM
->
getIM
(),
artChanged
(
QString
),
CONNECT
(
THEMIM
->
getIM
(),
artChanged
(
QString
),
this
,
updateArt
(
QString
)
);
this
,
updateArt
(
const
QString
&
)
);
}
}
BackgroundWidget
::~
BackgroundWidget
()
BackgroundWidget
::~
BackgroundWidget
()
...
@@ -199,7 +199,7 @@ void BackgroundWidget::resizeEvent( QResizeEvent * event )
...
@@ -199,7 +199,7 @@ void BackgroundWidget::resizeEvent( QResizeEvent * event )
label
->
show
();
label
->
show
();
}
}
void
BackgroundWidget
::
updateArt
(
QString
url
)
void
BackgroundWidget
::
updateArt
(
const
QString
&
url
)
{
{
if
(
url
.
isEmpty
()
)
if
(
url
.
isEmpty
()
)
{
{
...
@@ -409,7 +409,7 @@ CoverArtLabel::CoverArtLabel( QWidget *parent, intf_thread_t *_p_i )
...
@@ -409,7 +409,7 @@ CoverArtLabel::CoverArtLabel( QWidget *parent, intf_thread_t *_p_i )
setContextMenuPolicy
(
Qt
::
ActionsContextMenu
);
setContextMenuPolicy
(
Qt
::
ActionsContextMenu
);
CONNECT
(
this
,
updateRequested
(),
this
,
doUpdate
()
);
CONNECT
(
this
,
updateRequested
(),
this
,
doUpdate
()
);
CONNECT
(
THEMIM
->
getIM
(),
artChanged
(
QString
),
CONNECT
(
THEMIM
->
getIM
(),
artChanged
(
QString
),
this
,
doUpdate
(
QString
)
);
this
,
doUpdate
(
const
QString
&
)
);
setMinimumHeight
(
128
);
setMinimumHeight
(
128
);
setMinimumWidth
(
128
);
setMinimumWidth
(
128
);
...
@@ -431,7 +431,7 @@ CoverArtLabel::~CoverArtLabel()
...
@@ -431,7 +431,7 @@ CoverArtLabel::~CoverArtLabel()
removeAction
(
act
);
removeAction
(
act
);
}
}
void
CoverArtLabel
::
doUpdate
(
QString
url
)
void
CoverArtLabel
::
doUpdate
(
const
QString
&
url
)
{
{
QPixmap
pix
;
QPixmap
pix
;
if
(
!
url
.
isEmpty
()
&&
pix
.
load
(
url
)
)
if
(
!
url
.
isEmpty
()
&&
pix
.
load
(
url
)
)
...
...
modules/gui/qt4/components/interface_widgets.hpp
View file @
a8242d18
...
@@ -102,7 +102,7 @@ private:
...
@@ -102,7 +102,7 @@ private:
public
slots
:
public
slots
:
void
toggle
(){
TOGGLEV
(
this
);
}
void
toggle
(){
TOGGLEV
(
this
);
}
void
updateArt
(
QString
);
void
updateArt
(
const
QString
&
);
};
};
#if 0
#if 0
...
@@ -208,7 +208,7 @@ public slots:
...
@@ -208,7 +208,7 @@ public slots:
private
slots
:
private
slots
:
void
doUpdate
();
void
doUpdate
();
void
doUpdate
(
QString
);
void
doUpdate
(
const
QString
&
);
signals:
signals:
void
updateRequested
();
void
updateRequested
();
...
...
modules/gui/qt4/dialogs/convert.cpp
View file @
a8242d18
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
#include <QCheckBox>
#include <QCheckBox>
ConvertDialog
::
ConvertDialog
(
QWidget
*
parent
,
intf_thread_t
*
_p_intf
,
ConvertDialog
::
ConvertDialog
(
QWidget
*
parent
,
intf_thread_t
*
_p_intf
,
QString
inputMRL
)
const
QString
&
inputMRL
)
:
QVLCDialog
(
parent
,
_p_intf
)
:
QVLCDialog
(
parent
,
_p_intf
)
{
{
setWindowTitle
(
qtr
(
"Convert"
)
);
setWindowTitle
(
qtr
(
"Convert"
)
);
...
...
modules/gui/qt4/dialogs/convert.hpp
View file @
a8242d18
...
@@ -34,7 +34,7 @@ class ConvertDialog : public QVLCDialog
...
@@ -34,7 +34,7 @@ class ConvertDialog : public QVLCDialog
{
{
Q_OBJECT
;
Q_OBJECT
;
public:
public:
ConvertDialog
(
QWidget
*
,
intf_thread_t
*
,
QString
);
ConvertDialog
(
QWidget
*
,
intf_thread_t
*
,
const
QString
&
);
virtual
~
ConvertDialog
(){}
virtual
~
ConvertDialog
(){}
QString
getMrl
()
{
return
mrl
;}
QString
getMrl
()
{
return
mrl
;}
...
...
modules/gui/qt4/dialogs/errors.cpp
View file @
a8242d18
...
@@ -67,7 +67,7 @@ ErrorsDialog::ErrorsDialog( QWidget *parent, intf_thread_t *_p_intf )
...
@@ -67,7 +67,7 @@ ErrorsDialog::ErrorsDialog( QWidget *parent, intf_thread_t *_p_intf )
BUTTONACT
(
stopShowing
,
dontShow
()
);
BUTTONACT
(
stopShowing
,
dontShow
()
);
}
}
void
ErrorsDialog
::
addError
(
QString
title
,
QString
text
)
void
ErrorsDialog
::
addError
(
const
QString
&
title
,
const
QString
&
text
)
{
{
add
(
true
,
title
,
text
);
add
(
true
,
title
,
text
);
}
}
...
@@ -77,7 +77,7 @@ void ErrorsDialog::addError( QString title, QString text )
...
@@ -77,7 +77,7 @@ void ErrorsDialog::addError( QString title, QString text )
add( false, title, text );
add( false, title, text );
}*/
}*/
void
ErrorsDialog
::
add
(
bool
error
,
QString
title
,
QString
text
)
void
ErrorsDialog
::
add
(
bool
error
,
const
QString
&
title
,
const
QString
&
text
)
{
{
if
(
stopShowing
->
isChecked
()
)
return
;
if
(
stopShowing
->
isChecked
()
)
return
;
messages
->
textCursor
().
movePosition
(
QTextCursor
::
End
);
messages
->
textCursor
().
movePosition
(
QTextCursor
::
End
);
...
...
modules/gui/qt4/dialogs/errors.hpp
View file @
a8242d18
...
@@ -43,12 +43,12 @@ public:
...
@@ -43,12 +43,12 @@ public:
}
}
virtual
~
ErrorsDialog
()
{};
virtual
~
ErrorsDialog
()
{};
void
addError
(
QString
,
QString
);
void
addError
(
const
QString
&
,
const
QString
&
);
/*void addWarning( QString, QString );*/
/*void addWarning( QString, QString );*/
private:
private:
ErrorsDialog
(
QWidget
*
parent
,
intf_thread_t
*
);
ErrorsDialog
(
QWidget
*
parent
,
intf_thread_t
*
);
static
ErrorsDialog
*
instance
;
static
ErrorsDialog
*
instance
;
void
add
(
bool
,
QString
,
QString
);
void
add
(
bool
,
const
QString
&
,
const
QString
&
);
QCheckBox
*
stopShowing
;
QCheckBox
*
stopShowing
;
QTextEdit
*
messages
;
QTextEdit
*
messages
;
...
...
modules/gui/qt4/dialogs/mediainfo.cpp
View file @
a8242d18
...
@@ -87,7 +87,7 @@ MediaInfoDialog::MediaInfoDialog( intf_thread_t *_p_intf,
...
@@ -87,7 +87,7 @@ MediaInfoDialog::MediaInfoDialog( intf_thread_t *_p_intf,
BUTTONACT
(
saveMetaButton
,
saveMeta
()
);
BUTTONACT
(
saveMetaButton
,
saveMeta
()
);
/* Let the MetaData Panel update the URI */
/* Let the MetaData Panel update the URI */
CONNECT
(
MP
,
uriSet
(
QString
),
uriLine
,
setText
(
QString
)
);
CONNECT
(
MP
,
uriSet
(
const
QString
&
),
uriLine
,
setText
(
const
QString
&
)
);
CONNECT
(
MP
,
editing
(),
saveMetaButton
,
show
()
);
CONNECT
(
MP
,
editing
(),
saveMetaButton
,
show
()
);
/* Display the buttonBar according to the Tab selected */
/* Display the buttonBar according to the Tab selected */
...
...
modules/gui/qt4/dialogs/open.cpp
View file @
a8242d18
...
@@ -143,22 +143,22 @@ OpenDialog::OpenDialog( QWidget *parent,
...
@@ -143,22 +143,22 @@ OpenDialog::OpenDialog( QWidget *parent,
CONNECT
(
ui
.
Tab
,
currentChanged
(
int
),
this
,
signalCurrent
(
int
)
);
CONNECT
(
ui
.
Tab
,
currentChanged
(
int
),
this
,
signalCurrent
(
int
)
);
CONNECT
(
fileOpenPanel
,
mrlUpdated
(
QStringList
,
QString
),
CONNECT
(
fileOpenPanel
,
mrlUpdated
(
QStringList
,
QString
),
this
,
updateMRL
(
QStringList
,
QString
)
);
this
,
updateMRL
(
const
QStringList
&
,
const
QString
&
)
);
CONNECT
(
netOpenPanel
,
mrlUpdated
(
QStringList
,
QString
),
CONNECT
(
netOpenPanel
,
mrlUpdated
(
QStringList
,
QString
),
this
,
updateMRL
(
QStringList
,
QString
)
);
this
,
updateMRL
(
const
QStringList
&
,
const
QString
&
)
);
CONNECT
(
discOpenPanel
,
mrlUpdated
(
QStringList
,
QString
),
CONNECT
(
discOpenPanel
,
mrlUpdated
(
QStringList
,
QString
),
this
,
updateMRL
(
QStringList
,
QString
)
);
this
,
updateMRL
(
const
QStringList
&
,
const
QString
&
)
);
CONNECT
(
captureOpenPanel
,
mrlUpdated
(
QStringList
,
QString
),
CONNECT
(
captureOpenPanel
,
mrlUpdated
(
QStringList
,
QString
),
this
,
updateMRL
(
QStringList
,
QString
)
);
this
,
updateMRL
(
const
QStringList
&
,
const
QString
&
)
);
CONNECT
(
fileOpenPanel
,
methodChanged
(
QString
),
CONNECT
(
fileOpenPanel
,
methodChanged
(
QString
),
this
,
newCachingMethod
(
QString
)
);
this
,
newCachingMethod
(
const
QString
&
)
);
CONNECT
(
netOpenPanel
,
methodChanged
(
QString
),
CONNECT
(
netOpenPanel
,
methodChanged
(
QString
),
this
,
newCachingMethod
(
QString
)
);
this
,
newCachingMethod
(
const
QString
&
)
);
CONNECT
(
discOpenPanel
,
methodChanged
(
QString
),
CONNECT
(
discOpenPanel
,
methodChanged
(
QString
),
this
,
newCachingMethod
(
QString
)
);
this
,
newCachingMethod
(
const
QString
&
)
);
CONNECT
(
captureOpenPanel
,
methodChanged
(
QString
),
CONNECT
(
captureOpenPanel
,
methodChanged
(
QString
),
this
,
newCachingMethod
(
QString
)
);
this
,
newCachingMethod
(
const
QString
&
)
);
/* Advanced frame Connects */
/* Advanced frame Connects */
CONNECT
(
ui
.
slaveCheckbox
,
toggled
(
bool
),
this
,
updateMRL
()
);
CONNECT
(
ui
.
slaveCheckbox
,
toggled
(
bool
),
this
,
updateMRL
()
);
...
@@ -400,7 +400,7 @@ void OpenDialog::stream( bool b_transcode_only )
...
@@ -400,7 +400,7 @@ void OpenDialog::stream( bool b_transcode_only )
}
}
/* Update the MRL */
/* Update the MRL */
void
OpenDialog
::
updateMRL
(
QStringList
item
,
QString
tempMRL
)
void
OpenDialog
::
updateMRL
(
const
QStringList
&
item
,
const
QString
&
tempMRL
)
{
{
optionsMRL
=
tempMRL
;
optionsMRL
=
tempMRL
;
itemsMRL
=
item
;
itemsMRL
=
item
;
...
@@ -425,7 +425,7 @@ void OpenDialog::updateMRL() {
...
@@ -425,7 +425,7 @@ void OpenDialog::updateMRL() {
ui
.
mrlLine
->
setText
(
itemsMRL
.
join
(
" "
)
);
ui
.
mrlLine
->
setText
(
itemsMRL
.
join
(
" "
)
);
}
}
void
OpenDialog
::
newCachingMethod
(
QString
method
)
void
OpenDialog
::
newCachingMethod
(
const
QString
&
method
)
{
{
if
(
method
!=
storedMethod
)
{
if
(
method
!=
storedMethod
)
{
storedMethod
=
method
;
storedMethod
=
method
;
...
@@ -434,7 +434,7 @@ void OpenDialog::newCachingMethod( QString method )
...
@@ -434,7 +434,7 @@ void OpenDialog::newCachingMethod( QString method )
}
}
}
}
QStringList
OpenDialog
::
SeparateEntries
(
QString
entries
)
QStringList
OpenDialog
::
SeparateEntries
(
const
QString
&
entries
)
{
{
bool
b_quotes_mode
=
false
;
bool
b_quotes_mode
=
false
;
...
...
modules/gui/qt4/dialogs/open.hpp
View file @
a8242d18
...
@@ -98,7 +98,7 @@ private:
...
@@ -98,7 +98,7 @@ private:
int
i_action_flag
;
int
i_action_flag
;
bool
b_pl
;
bool
b_pl
;
QStringList
SeparateEntries
(
QString
);
QStringList
SeparateEntries
(
const
QString
&
);
QPushButton
*
cancelButton
,
*
selectButton
;
QPushButton
*
cancelButton
,
*
selectButton
;
QPushButton
*
playButton
;
QPushButton
*
playButton
;
...
@@ -110,9 +110,9 @@ private slots:
...
@@ -110,9 +110,9 @@ private slots:
void
cancel
();
void
cancel
();
void
close
();
void
close
();
void
toggleAdvancedPanel
();
void
toggleAdvancedPanel
();
void
updateMRL
(
QStringList
,
QString
);
void
updateMRL
(
const
QStringList
&
,
const
QString
&
);
void
updateMRL
();
void
updateMRL
();
void
newCachingMethod
(
QString
);
void
newCachingMethod
(
const
QString
&
);
void
signalCurrent
(
int
);
void
signalCurrent
(
int
);
void
browseInputSlave
();
void
browseInputSlave
();
};
};
...
...
modules/gui/qt4/dialogs/plugins.cpp
View file @
a8242d18
...
@@ -77,7 +77,7 @@ PluginDialog::PluginDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
...
@@ -77,7 +77,7 @@ PluginDialog::PluginDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
layout
->
addWidget
(
label
,
1
,
0
);
layout
->
addWidget
(
label
,
1
,
0
);
layout
->
addWidget
(
edit
,
1
,
1
,
1
,
-
1
);
layout
->
addWidget
(
edit
,
1
,
1
,
1
,
-
1
);
CONNECT
(
edit
,
textChanged
(
QString
),
CONNECT
(
edit
,
textChanged
(
QString
),
this
,
search
(
QString
)
);
this
,
search
(
const
QString
&
)
);
QDialogButtonBox
*
box
=
new
QDialogButtonBox
;
QDialogButtonBox
*
box
=
new
QDialogButtonBox
;
QPushButton
*
okButton
=
new
QPushButton
(
qtr
(
"&Close"
),
this
);
QPushButton
*
okButton
=
new
QPushButton
(
qtr
(
"&Close"
),
this
);
...
@@ -110,7 +110,7 @@ inline void PluginDialog::FillTree()
...
@@ -110,7 +110,7 @@ inline void PluginDialog::FillTree()
}
}
}
}
void
PluginDialog
::
search
(
const
QString
qs
)
void
PluginDialog
::
search
(
const
QString
&
qs
)
{
{
QList
<
QTreeWidgetItem
*>
items
=
treePlugins
->
findItems
(
qs
,
Qt
::
MatchContains
);
QList
<
QTreeWidgetItem
*>
items
=
treePlugins
->
findItems
(
qs
,
Qt
::
MatchContains
);
items
+=
treePlugins
->
findItems
(
qs
,
Qt
::
MatchContains
,
1
);
items
+=
treePlugins
->
findItems
(
qs
,
Qt
::
MatchContains
,
1
);
...
...
modules/gui/qt4/dialogs/plugins.hpp
View file @
a8242d18
...
@@ -42,7 +42,7 @@ private:
...
@@ -42,7 +42,7 @@ private:
QTreeWidget
*
treePlugins
;
QTreeWidget
*
treePlugins
;
SearchLineEdit
*
edit
;
SearchLineEdit
*
edit
;
private
slots
:
private
slots
:
void
search
(
const
QString
);
void
search
(
const
QString
&
);
};
};
#endif
#endif
...
...
modules/gui/qt4/dialogs/sout.cpp
View file @
a8242d18
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
#include <QFileDialog>
#include <QFileDialog>
#include <QToolButton>
#include <QToolButton>
SoutDialog
::
SoutDialog
(
QWidget
*
parent
,
intf_thread_t
*
_p_intf
,
QString
inputMRL
)
SoutDialog
::
SoutDialog
(
QWidget
*
parent
,
intf_thread_t
*
_p_intf
,
const
QString
&
inputMRL
)
:
QVLCDialog
(
parent
,
_p_intf
)
:
QVLCDialog
(
parent
,
_p_intf
)
{
{
setWindowTitle
(
qtr
(
"Stream Output"
)
);
setWindowTitle
(
qtr
(
"Stream Output"
)
);
...
...
modules/gui/qt4/dialogs/sout.hpp
View file @
a8242d18
...
@@ -113,7 +113,7 @@ class SoutDialog : public QVLCDialog
...
@@ -113,7 +113,7 @@ class SoutDialog : public QVLCDialog
{
{
Q_OBJECT
;
Q_OBJECT
;
public:
public:
SoutDialog
(
QWidget
*
parent
,
intf_thread_t
*
,
QString
mrl
=
""
);
SoutDialog
(
QWidget
*
parent
,
intf_thread_t
*
,
const
QString
&
mrl
=
""
);
virtual
~
SoutDialog
(){}
virtual
~
SoutDialog
(){}
QString
getMrl
(){
return
mrl
;
}
QString
getMrl
(){
return
mrl
;
}
...
...
modules/gui/qt4/dialogs/toolbar.cpp
View file @
a8242d18
...
@@ -461,7 +461,7 @@ void WidgetListing::startDrag( Qt::DropActions /*supportedActions*/ )
...
@@ -461,7 +461,7 @@ void WidgetListing::startDrag( Qt::DropActions /*supportedActions*/ )
* to propagate there too
* to propagate there too
*/
*/
DroppingController
::
DroppingController
(
intf_thread_t
*
_p_intf
,
DroppingController
::
DroppingController
(
intf_thread_t
*
_p_intf
,
QString
line
,
const
QString
&
line
,
QWidget
*
_parent
)
QWidget
*
_parent
)
:
AbstractController
(
_p_intf
,
_parent
)
:
AbstractController
(
_p_intf
,
_parent
)
{
{
...
@@ -477,7 +477,7 @@ DroppingController::DroppingController( intf_thread_t *_p_intf,
...
@@ -477,7 +477,7 @@ DroppingController::DroppingController( intf_thread_t *_p_intf,
parseAndCreate
(
line
,
controlLayout
);
parseAndCreate
(
line
,
controlLayout
);
}
}
void
DroppingController
::
resetLine
(
QString
line
)
void
DroppingController
::
resetLine
(
const
QString
&
line
)
{
{
hide
();
hide
();
QLayoutItem
*
child
;
QLayoutItem
*
child
;
...
...
modules/gui/qt4/dialogs/toolbar.hpp
View file @
a8242d18
...
@@ -98,11 +98,11 @@ class DroppingController: public AbstractController
...
@@ -98,11 +98,11 @@ class DroppingController: public AbstractController
{
{
Q_OBJECT
;
Q_OBJECT
;
public:
public:
DroppingController
(
intf_thread_t
*
,
QString
line
,
QWidget
*
parent
=
0
);
DroppingController
(
intf_thread_t
*
,
const
QString
&
line
,
QWidget
*
parent
=
0
);
QString
getValue
();
QString
getValue
();
virtual
~
DroppingController
();
virtual
~
DroppingController
();
void
resetLine
(
QString
);
void
resetLine
(
const
QString
&
);
protected:
protected:
virtual
void
createAndAddWidget
(
QBoxLayout
*
controlLayout
,
int
i_index
,
virtual
void
createAndAddWidget
(
QBoxLayout
*
controlLayout
,
int
i_index
,
buttonType_e
i_type
,
int
i_option
);
buttonType_e
i_type
,
int
i_option
);
...
...
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