Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
3902f627
Commit
3902f627
authored
Aug 20, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 : Fix the playlistButton Size.
cosmetics.
parent
b96f2920
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
43 deletions
+43
-43
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.cpp
+43
-43
No files found.
modules/gui/qt4/components/interface_widgets.cpp
View file @
3902f627
/*****************************************************************************
/*****************************************************************************
* interface_widgets.cpp : Custom widgets for the main interface
* interface_widgets.cpp : Custom widgets for the main interface
****************************************************************************
****************************************************************************
* Copyright (
C
) 2006 the VideoLAN team
* Copyright (
C
) 2006 the VideoLAN team
* $Id$
* $Id$
*
*
* Authors: Clément Stenac <zorglub@videolan.org>
* Authors: Clément Stenac <zorglub@videolan.org>
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
* This program is free software; you can redistribute it and/or modify
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* the Free Software Foundation; either version 2 of the License, or
* (
at your option
) any later version.
* (
at your option
) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* but WITHOUT ANY WARRANTY; without even the implied warranty of
...
@@ -94,7 +94,7 @@ void *VideoWidget::request( vout_thread_t *p_nvout, int *pi_x, int *pi_y,
...
@@ -94,7 +94,7 @@ void *VideoWidget::request( vout_thread_t *p_nvout, int *pi_x, int *pi_y,
}
}
p_vout
=
p_nvout
;
p_vout
=
p_nvout
;
setMinimumSize
(
16
,
16
);
setMinimumSize
(
16
,
16
);
return
(
void
*
)
winId
();
return
(
void
*
)
winId
();
}
}
void
VideoWidget
::
release
(
void
*
p_win
)
void
VideoWidget
::
release
(
void
*
p_win
)
...
@@ -127,7 +127,7 @@ BackgroundWidget::BackgroundWidget( intf_thread_t *_p_i ) :
...
@@ -127,7 +127,7 @@ BackgroundWidget::BackgroundWidget( intf_thread_t *_p_i ) :
BackgroundWidget
::~
BackgroundWidget
()
BackgroundWidget
::~
BackgroundWidget
()
{
{
backgroundLayout
->
takeAt
(
0
);
backgroundLayout
->
takeAt
(
0
);
delete
backgroundLayout
;
delete
backgroundLayout
;
}
}
...
@@ -161,13 +161,13 @@ VisualSelector::VisualSelector( intf_thread_t *_p_i ) :
...
@@ -161,13 +161,13 @@ VisualSelector::VisualSelector( intf_thread_t *_p_i ) :
QHBoxLayout
*
layout
=
new
QHBoxLayout
(
this
);
QHBoxLayout
*
layout
=
new
QHBoxLayout
(
this
);
layout
->
setMargin
(
0
);
layout
->
setMargin
(
0
);
QPushButton
*
prevButton
=
new
QPushButton
(
"Prev"
);
QPushButton
*
prevButton
=
new
QPushButton
(
"Prev"
);
QPushButton
*
nextButton
=
new
QPushButton
(
"Next"
);
QPushButton
*
nextButton
=
new
QPushButton
(
"Next"
);
layout
->
addWidget
(
prevButton
);
layout
->
addWidget
(
prevButton
);
layout
->
addWidget
(
nextButton
);
layout
->
addWidget
(
nextButton
);
layout
->
addItem
(
new
QSpacerItem
(
40
,
20
,
layout
->
addItem
(
new
QSpacerItem
(
40
,
20
,
QSizePolicy
::
Expanding
,
QSizePolicy
::
Minimum
)
);
QSizePolicy
::
Expanding
,
QSizePolicy
::
Minimum
)
);
layout
->
addWidget
(
new
QLabel
(
qtr
(
"Current visualization:"
)
)
);
layout
->
addWidget
(
new
QLabel
(
qtr
(
"Current visualization:"
)
)
);
current
=
new
QLabel
(
qtr
(
"None"
)
);
current
=
new
QLabel
(
qtr
(
"None"
)
);
layout
->
addWidget
(
current
);
layout
->
addWidget
(
current
);
...
@@ -213,21 +213,21 @@ AdvControlsWidget::AdvControlsWidget( intf_thread_t *_p_i ) :
...
@@ -213,21 +213,21 @@ AdvControlsWidget::AdvControlsWidget( intf_thread_t *_p_i ) :
layout
->
setMargin
(
0
);
layout
->
setMargin
(
0
);
normalButton
=
new
QPushButton
(
"N"
);
normalButton
=
new
QPushButton
(
"N"
);
BUTTON_SET_ACT
(
normalButton
,
"N"
,
qtr
(
"Normal rate"
),
normal
()
);
BUTTON_SET_ACT
(
normalButton
,
"N"
,
qtr
(
"Normal rate"
),
normal
()
);
layout
->
addWidget
(
normalButton
);
layout
->
addWidget
(
normalButton
);
normalButton
->
setMaximumWidth
(
35
);
normalButton
->
setMaximumWidth
(
35
);
layout
->
addItem
(
new
QSpacerItem
(
100
,
20
,
layout
->
addItem
(
new
QSpacerItem
(
100
,
20
,
QSizePolicy
::
Expanding
,
QSizePolicy
::
Minimum
)
);
QSizePolicy
::
Expanding
,
QSizePolicy
::
Minimum
)
);
snapshotButton
=
new
QPushButton
(
"S"
);
snapshotButton
=
new
QPushButton
(
"S"
);
BUTTON_SET_ACT
(
snapshotButton
,
"S"
,
qtr
(
"Take a snapshot"
),
snapshot
()
);
BUTTON_SET_ACT
(
snapshotButton
,
"S"
,
qtr
(
"Take a snapshot"
),
snapshot
()
);
layout
->
addWidget
(
snapshotButton
);
layout
->
addWidget
(
snapshotButton
);
snapshotButton
->
setMaximumWidth
(
35
);
snapshotButton
->
setMaximumWidth
(
35
);
fullscreenButton
=
new
QPushButton
(
"F"
);
fullscreenButton
=
new
QPushButton
(
"F"
);
BUTTON_SET_ACT
(
fullscreenButton
,
"F"
,
qtr
(
"Fullscreen"
),
fullscreen
()
);
BUTTON_SET_ACT
(
fullscreenButton
,
"F"
,
qtr
(
"Fullscreen"
),
fullscreen
()
);
layout
->
addWidget
(
fullscreenButton
);
layout
->
addWidget
(
fullscreenButton
);
fullscreenButton
->
setMaximumWidth
(
35
);
fullscreenButton
->
setMaximumWidth
(
35
);
}
}
...
@@ -280,12 +280,12 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i ) :
...
@@ -280,12 +280,12 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i ) :
/** Slower and faster Buttons **/
/** Slower and faster Buttons **/
slowerButton
=
new
QPushButton
(
"S"
);
slowerButton
=
new
QPushButton
(
"S"
);
BUTTON_SET_ACT
(
slowerButton
,
"S"
,
qtr
(
"Slower"
),
slower
()
);
BUTTON_SET_ACT
(
slowerButton
,
"S"
,
qtr
(
"Slower"
),
slower
()
);
controlLayout
->
addWidget
(
slowerButton
,
0
,
0
);
controlLayout
->
addWidget
(
slowerButton
,
0
,
0
);
slowerButton
->
setMaximumSize
(
QSize
(
26
,
26
)
);
slowerButton
->
setMaximumSize
(
QSize
(
26
,
26
)
);
fasterButton
=
new
QPushButton
(
"F"
);
fasterButton
=
new
QPushButton
(
"F"
);
BUTTON_SET_ACT
(
fasterButton
,
"F"
,
qtr
(
"Faster"
),
faster
()
);
BUTTON_SET_ACT
(
fasterButton
,
"F"
,
qtr
(
"Faster"
),
faster
()
);
controlLayout
->
addWidget
(
fasterButton
,
0
,
16
);
controlLayout
->
addWidget
(
fasterButton
,
0
,
16
);
fasterButton
->
setMaximumSize
(
QSize
(
26
,
26
)
);
fasterButton
->
setMaximumSize
(
QSize
(
26
,
26
)
);
...
@@ -312,7 +312,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i ) :
...
@@ -312,7 +312,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i ) :
/* Change the navigation button display when the IM navigation changes */
/* Change the navigation button display when the IM navigation changes */
CONNECT
(
THEMIM
->
getIM
(),
navigationChanged
(
int
),
CONNECT
(
THEMIM
->
getIM
(),
navigationChanged
(
int
),
this
,
setNavigation
(
int
)
);
this
,
setNavigation
(
int
)
);
/* Changes the IM navigation when triggered on the nav buttons */
/* Changes the IM navigation when triggered on the nav buttons */
CONNECT
(
prevSectionButton
,
clicked
(),
THEMIM
->
getIM
(),
CONNECT
(
prevSectionButton
,
clicked
(),
THEMIM
->
getIM
(),
sectionPrev
()
);
sectionPrev
()
);
...
@@ -325,7 +325,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i ) :
...
@@ -325,7 +325,7 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i ) :
QSizePolicy
sizePolicy
(
QSizePolicy
::
Maximum
,
QSizePolicy
::
Fixed
);
QSizePolicy
sizePolicy
(
QSizePolicy
::
Maximum
,
QSizePolicy
::
Fixed
);
sizePolicy
.
setHorizontalStretch
(
0
);
sizePolicy
.
setHorizontalStretch
(
0
);
sizePolicy
.
setVerticalStretch
(
0
);
sizePolicy
.
setVerticalStretch
(
0
);
// sizePolicy.setHeightForWidth( playButton->sizePolicy(
).hasHeightForWidth(
) );
// sizePolicy.setHeightForWidth( playButton->sizePolicy(
).hasHeightForWidth(
) );
/* Play */
/* Play */
QPushButton
*
playButton
=
new
QPushButton
;
QPushButton
*
playButton
=
new
QPushButton
;
...
@@ -366,11 +366,11 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i ) :
...
@@ -366,11 +366,11 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i ) :
/* Add this block to the main layout */
/* Add this block to the main layout */
controlLayout
->
addLayout
(
controlButLayout
,
3
,
3
,
1
,
3
);
controlLayout
->
addLayout
(
controlButLayout
,
3
,
3
,
1
,
3
);
BUTTON_SET_ACT_I
(
playButton
,
""
,
play
.
png
,
qtr
(
"Play"
),
play
()
);
BUTTON_SET_ACT_I
(
playButton
,
""
,
play
.
png
,
qtr
(
"Play"
),
play
()
);
BUTTON_SET_ACT_I
(
prevButton
,
""
,
previous
.
png
,
BUTTON_SET_ACT_I
(
prevButton
,
""
,
previous
.
png
,
qtr
(
"Previous"
),
prev
()
);
qtr
(
"Previous"
),
prev
()
);
BUTTON_SET_ACT_I
(
nextButton
,
""
,
next
.
png
,
qtr
(
"Next"
),
next
()
);
BUTTON_SET_ACT_I
(
nextButton
,
""
,
next
.
png
,
qtr
(
"Next"
),
next
()
);
BUTTON_SET_ACT_I
(
stopButton
,
""
,
stop
.
png
,
qtr
(
"Stop"
),
stop
()
);
BUTTON_SET_ACT_I
(
stopButton
,
""
,
stop
.
png
,
qtr
(
"Stop"
),
stop
()
);
/*
/*
* Other first Line buttons
* Other first Line buttons
...
@@ -379,26 +379,26 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i ) :
...
@@ -379,26 +379,26 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i ) :
*/
*/
/** Playlist Button **/
/** Playlist Button **/
playlistButton
=
new
QPushButton
;
playlistButton
=
new
QPushButton
;
playlistButton
->
setMaximumSize
(
QSize
(
45
,
45
)
);
playlistButton
->
setMaximumSize
(
QSize
(
26
,
26
)
);
controlLayout
->
addWidget
(
playlistButton
,
3
,
10
);
controlLayout
->
addWidget
(
playlistButton
,
3
,
10
);
/** Fullscreen/Visualisation **/
/** Fullscreen/Visualisation **/
QPushButton
*
fullscreenButton
=
new
QPushButton
(
"F"
);
QPushButton
*
fullscreenButton
=
new
QPushButton
(
"F"
);
BUTTON_SET_ACT
(
fullscreenButton
,
"F"
,
qtr
(
"Fullscreen"
),
fullscreen
()
);
BUTTON_SET_ACT
(
fullscreenButton
,
"F"
,
qtr
(
"Fullscreen"
),
fullscreen
()
);
fullscreenButton
->
setMaximumSize
(
QSize
(
26
,
26
)
);
fullscreenButton
->
setMaximumSize
(
QSize
(
26
,
26
)
);
controlLayout
->
addWidget
(
fullscreenButton
,
3
,
11
);
controlLayout
->
addWidget
(
fullscreenButton
,
3
,
11
);
/** extended Settings **/
/** extended Settings **/
QPushButton
*
extSettingsButton
=
new
QPushButton
(
"F"
);
QPushButton
*
extSettingsButton
=
new
QPushButton
(
"F"
);
BUTTON_SET_ACT
(
extSettingsButton
,
"Ex"
,
qtr
(
"Extended Settings"
),
BUTTON_SET_ACT
(
extSettingsButton
,
"Ex"
,
qtr
(
"Extended Settings"
),
extSettings
()
);
extSettings
()
);
extSettingsButton
->
setMaximumSize
(
QSize
(
26
,
26
)
);
extSettingsButton
->
setMaximumSize
(
QSize
(
26
,
26
)
);
controlLayout
->
addWidget
(
extSettingsButton
,
3
,
12
);
controlLayout
->
addWidget
(
extSettingsButton
,
3
,
12
);
/** Preferences **/
/** Preferences **/
QPushButton
*
prefsButton
=
new
QPushButton
(
"P"
);
QPushButton
*
prefsButton
=
new
QPushButton
(
"P"
);
BUTTON_SET_ACT
(
prefsButton
,
"P"
,
qtr
(
"Preferences / Settings"
),
prefs
()
);
BUTTON_SET_ACT
(
prefsButton
,
"P"
,
qtr
(
"Preferences / Settings"
),
prefs
()
);
prefsButton
->
setMaximumSize
(
QSize
(
26
,
26
)
);
prefsButton
->
setMaximumSize
(
QSize
(
26
,
26
)
);
controlLayout
->
addWidget
(
prefsButton
,
3
,
13
);
controlLayout
->
addWidget
(
prefsButton
,
3
,
13
);
...
@@ -408,11 +408,11 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i ) :
...
@@ -408,11 +408,11 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i ) :
QLabel
*
volMuteLabel
=
new
QLabel
;
QLabel
*
volMuteLabel
=
new
QLabel
;
volMuteLabel
->
setPixmap
(
QPixmap
(
":/pixmaps/volume-low.png"
)
);
volMuteLabel
->
setPixmap
(
QPixmap
(
":/pixmaps/volume-low.png"
)
);
volMuteLabel
->
setToolTip
(
qtr
(
"Mute"
)
);
volMuteLabel
->
setToolTip
(
qtr
(
"Mute"
)
);
volMuteLabel
->
installEventFilter
(
h
);
volMuteLabel
->
installEventFilter
(
h
);
volumeSlider
=
new
QSlider
;
volumeSlider
=
new
QSlider
;
volumeSlider
->
setSizePolicy
(
sizePolicy
);
volumeSlider
->
setSizePolicy
(
sizePolicy
);
volumeSlider
->
setMaximumSize
(
QSize
(
80
,
200
)
);
volumeSlider
->
setMaximumSize
(
QSize
(
80
,
200
)
);
volumeSlider
->
setOrientation
(
Qt
::
Horizontal
);
volumeSlider
->
setOrientation
(
Qt
::
Horizontal
);
volumeSlider
->
setMaximum
(
100
);
volumeSlider
->
setMaximum
(
100
);
...
@@ -434,7 +434,7 @@ void ControlsWidget::stop()
...
@@ -434,7 +434,7 @@ void ControlsWidget::stop()
void
ControlsWidget
::
play
()
void
ControlsWidget
::
play
()
{
{
if
(
playlist_IsEmpty
(
THEPL
)
)
if
(
playlist_IsEmpty
(
THEPL
)
)
{
{
/* The playlist is empty, open a file requester */
/* The playlist is empty, open a file requester */
THEDP
->
openFileDialog
();
THEDP
->
openFileDialog
();
...
@@ -456,11 +456,11 @@ void ControlsWidget::next()
...
@@ -456,11 +456,11 @@ void ControlsWidget::next()
void
ControlsWidget
::
setNavigation
(
int
navigation
)
void
ControlsWidget
::
setNavigation
(
int
navigation
)
{
{
#define HELP_MENU N_(
"Menu"
)
#define HELP_MENU N_(
"Menu"
)
#define HELP_PCH N_(
"Previous chapter"
)
#define HELP_PCH N_(
"Previous chapter"
)
#define HELP_NCH N_(
"Next chapter"
)
#define HELP_NCH N_(
"Next chapter"
)
#define HELP_PTR N_(
"Previous track"
)
#define HELP_PTR N_(
"Previous track"
)
#define HELP_NTR N_(
"Next track"
)
#define HELP_NTR N_(
"Next track"
)
// 1 = chapter, 2 = title, 0 = no
// 1 = chapter, 2 = title, 0 = no
if
(
navigation
==
0
)
if
(
navigation
==
0
)
...
@@ -468,16 +468,16 @@ void ControlsWidget::setNavigation( int navigation )
...
@@ -468,16 +468,16 @@ void ControlsWidget::setNavigation( int navigation )
discFrame
->
hide
();
discFrame
->
hide
();
}
else
if
(
navigation
==
1
)
{
}
else
if
(
navigation
==
1
)
{
prevSectionButton
->
show
();
prevSectionButton
->
show
();
prevSectionButton
->
setToolTip
(
qfu
(
HELP_PCH
)
);
prevSectionButton
->
setToolTip
(
qfu
(
HELP_PCH
)
);
nextSectionButton
->
show
();
nextSectionButton
->
show
();
nextSectionButton
->
setToolTip
(
qfu
(
HELP_NCH
)
);
nextSectionButton
->
setToolTip
(
qfu
(
HELP_NCH
)
);
menuButton
->
show
();
menuButton
->
show
();
discFrame
->
show
();
discFrame
->
show
();
}
else
{
}
else
{
prevSectionButton
->
show
();
prevSectionButton
->
show
();
prevSectionButton
->
setToolTip
(
qfu
(
HELP_PCH
)
);
prevSectionButton
->
setToolTip
(
qfu
(
HELP_PCH
)
);
nextSectionButton
->
show
();
nextSectionButton
->
show
();
nextSectionButton
->
setToolTip
(
qfu
(
HELP_NCH
)
);
nextSectionButton
->
setToolTip
(
qfu
(
HELP_NCH
)
);
menuButton
->
hide
();
menuButton
->
hide
();
discFrame
->
show
();
discFrame
->
show
();
}
}
...
@@ -498,7 +498,7 @@ void ControlsWidget::updateOnTimer()
...
@@ -498,7 +498,7 @@ void ControlsWidget::updateOnTimer()
{
{
audio_volume_t
i_volume
;
audio_volume_t
i_volume
;
aout_VolumeGet
(
p_intf
,
&
i_volume
);
aout_VolumeGet
(
p_intf
,
&
i_volume
);
i_volume
=
(
i_volume
*
200
)
/
AOUT_VOLUME_MAX
;
i_volume
=
(
i_volume
*
200
)
/
AOUT_VOLUME_MAX
;
int
i_gauge
=
volumeSlider
->
value
();
int
i_gauge
=
volumeSlider
->
value
();
b_my_volume
=
false
;
b_my_volume
=
false
;
if
(
i_volume
-
i_gauge
>
1
||
i_gauge
-
i_volume
>
1
)
if
(
i_volume
-
i_gauge
>
1
||
i_gauge
-
i_volume
>
1
)
...
@@ -530,7 +530,7 @@ void ControlsWidget::setStatus( int status )
...
@@ -530,7 +530,7 @@ void ControlsWidget::setStatus( int status )
*/
*/
void
ControlsWidget
::
fullscreen
()
void
ControlsWidget
::
fullscreen
()
{
{
msg_Dbg
(
p_intf
,
"Not implemented yet"
);
msg_Dbg
(
p_intf
,
"Not implemented yet"
);
}
}
void
ControlsWidget
::
extSettings
()
void
ControlsWidget
::
extSettings
()
...
@@ -566,7 +566,7 @@ void ControlsWidget::enableInput( bool enable )
...
@@ -566,7 +566,7 @@ void ControlsWidget::enableInput( bool enable )
#include "components/playlist/selector.hpp"
#include "components/playlist/selector.hpp"
PlaylistWidget
::
PlaylistWidget
(
intf_thread_t
*
_p_intf
)
:
PlaylistWidget
::
PlaylistWidget
(
intf_thread_t
*
_p_intf
)
:
p_intf
(
_p_intf
)
p_intf
(
_p_intf
)
{
{
/* Left Part and design */
/* Left Part and design */
QWidget
*
leftW
=
new
QWidget
(
this
);
QWidget
*
leftW
=
new
QWidget
(
this
);
...
@@ -590,20 +590,20 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_intf ) :
...
@@ -590,20 +590,20 @@ PlaylistWidget::PlaylistWidget( intf_thread_t *_p_intf ) :
playlist_item_t
*
p_root
=
playlist_GetPreferredNode
(
THEPL
,
playlist_item_t
*
p_root
=
playlist_GetPreferredNode
(
THEPL
,
THEPL
->
p_local_category
);
THEPL
->
p_local_category
);
rightPanel
=
qobject_cast
<
PLPanel
*>
(
new
StandardPLPanel
(
this
,
rightPanel
=
qobject_cast
<
PLPanel
*>
(
new
StandardPLPanel
(
this
,
p_intf
,
THEPL
,
p_root
)
);
p_intf
,
THEPL
,
p_root
)
);
/* Connects */
/* Connects */
CONNECT
(
selector
,
activated
(
int
),
rightPanel
,
setRoot
(
int
)
);
CONNECT
(
selector
,
activated
(
int
),
rightPanel
,
setRoot
(
int
)
);
CONNECT
(
qobject_cast
<
StandardPLPanel
*>
(
rightPanel
)
->
model
,
CONNECT
(
qobject_cast
<
StandardPLPanel
*>
(
rightPanel
)
->
model
,
artSet
(
QString
)
,
this
,
setArt
(
QString
)
);
artSet
(
QString
)
,
this
,
setArt
(
QString
)
);
/* Forward removal requests from the selector to the main panel */
/* Forward removal requests from the selector to the main panel */
CONNECT
(
qobject_cast
<
PLSelector
*>
(
selector
)
->
model
,
CONNECT
(
qobject_cast
<
PLSelector
*>
(
selector
)
->
model
,
shouldRemove
(
int
),
shouldRemove
(
int
),
qobject_cast
<
StandardPLPanel
*>
(
rightPanel
),
removeItem
(
int
)
);
qobject_cast
<
StandardPLPanel
*>
(
rightPanel
),
removeItem
(
int
)
);
connect
(
selector
,
SIGNAL
(
activated
(
int
)
),
connect
(
selector
,
SIGNAL
(
activated
(
int
)
),
this
,
SIGNAL
(
rootChanged
(
int
)
)
);
this
,
SIGNAL
(
rootChanged
(
int
)
)
);
emit
rootChanged
(
p_root
->
i_id
);
emit
rootChanged
(
p_root
->
i_id
);
...
...
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