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
56cf048f
Commit
56cf048f
authored
Oct 13, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: move to Stack Widget, part 2
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
3777d840
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
117 additions
and
55 deletions
+117
-55
modules/gui/qt4/components/controller.cpp
modules/gui/qt4/components/controller.cpp
+0
-2
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.cpp
+4
-4
modules/gui/qt4/main_interface.cpp
modules/gui/qt4/main_interface.cpp
+102
-48
modules/gui/qt4/main_interface.hpp
modules/gui/qt4/main_interface.hpp
+11
-1
No files found.
modules/gui/qt4/components/controller.cpp
View file @
56cf048f
...
...
@@ -584,8 +584,6 @@ ControlsWidget::ControlsWidget( intf_thread_t *_p_i,
QWidget
*
_parent
)
:
AbstractController
(
_p_i
,
_parent
)
{
setSizePolicy
(
QSizePolicy
::
Preferred
,
QSizePolicy
::
Maximum
);
/* advanced Controls handling */
b_advancedVisible
=
b_advControls
;
...
...
modules/gui/qt4/components/interface_widgets.cpp
View file @
56cf048f
...
...
@@ -301,10 +301,10 @@ BackgroundWidget::BackgroundWidget( intf_thread_t *_p_i )
/* A cone in the middle */
label
=
new
QLabel
;
label
->
setMargin
(
5
);
label
->
setMaximumHeight
(
MAX_BG_SIZE
);
/*
label->setMaximumHeight( MAX_BG_SIZE );
label->setMaximumWidth( MAX_BG_SIZE );
label->setMinimumHeight( MIN_BG_SIZE );
label
->
setMinimumWidth
(
MIN_BG_SIZE
);
label->setMinimumWidth( MIN_BG_SIZE );
*/
label
->
setAlignment
(
Qt
::
AlignCenter
);
if
(
QDate
::
currentDate
().
dayOfYear
()
>=
354
)
label
->
setPixmap
(
QPixmap
(
":/logo/vlc128-christmas.png"
)
);
...
...
@@ -549,10 +549,10 @@ CoverArtLabel::CoverArtLabel( QWidget *parent, intf_thread_t *_p_i )
setContextMenuPolicy
(
Qt
::
ActionsContextMenu
);
CONNECT
(
this
,
updateRequested
(),
this
,
askForUpdate
()
);
setMinimumHeight
(
128
);
/*
setMinimumHeight( 128 );
setMinimumWidth( 128 );
setMaximumHeight( 128 );
setMaximumWidth
(
128
);
setMaximumWidth( 128 );
*/
setScaledContents
(
false
);
setAlignment
(
Qt
::
AlignCenter
);
...
...
modules/gui/qt4/main_interface.cpp
View file @
56cf048f
This diff is collapsed.
Click to expand it.
modules/gui/qt4/main_interface.hpp
View file @
56cf048f
...
...
@@ -53,12 +53,18 @@ class SpeedControlWidget;
class
QVBoxLayout
;
class
QMenu
;
class
QSize
;
class
QStackedWidget
;
enum
{
CONTROLS_VISIBLE
=
0x1
,
CONTROLS_HIDDEN
=
0x2
,
CONTROLS_ADVANCED
=
0x4
,
};
enum
{
BACKG_TAB
,
VIDEO_TAB
,
PLAYL_TAB
,
};
typedef
enum
pl_dock_e
{
PL_UNDOCKED
,
...
...
@@ -118,6 +124,10 @@ private:
void
initSystray
();
bool
isDocked
()
{
return
(
i_pl_dock
!=
PL_UNDOCKED
);
}
void
showTab
(
int
i_tab
);
void
showVideo
()
{
showTab
(
VIDEO_TAB
);
}
void
showBg
()
{
showTab
(
BACKG_TAB
);
}
QSettings
*
settings
;
#ifndef HAVE_MAEMO
QSystemTrayIcon
*
sysTray
;
...
...
@@ -128,7 +138,7 @@ private:
ControlsWidget
*
controls
;
InputControlsWidget
*
inputC
;
FullscreenControllerWidget
*
fullscreenControls
;
QStackedWidget
*
stackCentralW
;
/* Video */
VideoWidget
*
videoWidget
;
...
...
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