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
8fba1635
Commit
8fba1635
authored
Mar 04, 2010
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: clean bgWidget
parent
e4aae87d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
15 deletions
+9
-15
modules/gui/qt4/components/interface_widgets.cpp
modules/gui/qt4/components/interface_widgets.cpp
+9
-14
modules/gui/qt4/components/interface_widgets.hpp
modules/gui/qt4/components/interface_widgets.hpp
+0
-1
No files found.
modules/gui/qt4/components/interface_widgets.cpp
View file @
8fba1635
/*****************************************************************************
* interface_widgets.cpp : Custom widgets for the main interface
****************************************************************************
* Copyright (C) 2006-20
08
the VideoLAN team
* Copyright (C) 2006-20
10
the VideoLAN team
* $Id$
*
* Authors: Clément Stenac <zorglub@videolan.org>
...
...
@@ -88,7 +88,7 @@ VideoWidget::VideoWidget( intf_thread_t *_p_i )
,
reparentable
(
NULL
)
{
/* Set the policy to expand in both directions */
//
setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding );
//
setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding );
layout
=
new
QHBoxLayout
(
this
);
layout
->
setContentsMargins
(
0
,
0
,
0
,
0
);
...
...
@@ -287,7 +287,7 @@ BackgroundWidget::BackgroundWidget( intf_thread_t *_p_i )
:
QWidget
(
NULL
),
p_intf
(
_p_i
)
{
/* We should use that one to take the more size it can */
setSizePolicy
(
QSizePolicy
::
Expanding
,
QSizePolicy
::
Expanding
);
//
setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding);
/* A dark background */
setAutoFillBackground
(
true
);
...
...
@@ -299,17 +299,14 @@ BackgroundWidget::BackgroundWidget( intf_thread_t *_p_i )
/* A cone in the middle */
label
=
new
QLabel
;
label
->
setMargin
(
5
);
/* label->setMaximumHeight( MAX_BG_SIZE );
label->setMaximumWidth( MAX_BG_SIZE );
label->setMinimumHeight( MIN_BG_SIZE );
label->setMinimumWidth( MIN_BG_SIZE );*/
label
->
setAlignment
(
Qt
::
AlignCenter
);
if
(
QDate
::
currentDate
().
dayOfYear
()
>=
354
)
label
->
setPixmap
(
QPixmap
(
":/logo/vlc128-christmas.png"
)
);
else
label
->
setPixmap
(
QPixmap
(
":/logo/vlc128.png"
)
);
/* Init the cone art */
updateArt
(
""
);
/* Grid, because of the visual selector */
QGridLayout
*
backgroundLayout
=
new
QGridLayout
(
this
);
backgroundLayout
->
setMargin
(
0
);
backgroundLayout
->
addWidget
(
label
,
0
,
1
);
backgroundLayout
->
setColumnStretch
(
0
,
1
);
backgroundLayout
->
setColumnStretch
(
2
,
1
);
...
...
@@ -318,9 +315,6 @@ BackgroundWidget::BackgroundWidget( intf_thread_t *_p_i )
this
,
updateArt
(
const
QString
&
)
);
}
BackgroundWidget
::~
BackgroundWidget
()
{}
void
BackgroundWidget
::
resizeEvent
(
QResizeEvent
*
event
)
{
if
(
event
->
size
().
height
()
<=
MIN_BG_SIZE
)
...
...
@@ -333,6 +327,7 @@ void BackgroundWidget::updateArt( const QString& url )
{
if
(
url
.
isEmpty
()
)
{
/* Xmas joke */
if
(
QDate
::
currentDate
().
dayOfYear
()
>=
354
)
label
->
setPixmap
(
QPixmap
(
":/logo/vlc128-christmas.png"
)
);
else
...
...
modules/gui/qt4/components/interface_widgets.hpp
View file @
8fba1635
...
...
@@ -91,7 +91,6 @@ class BackgroundWidget : public QWidget
Q_OBJECT
public:
BackgroundWidget
(
intf_thread_t
*
);
virtual
~
BackgroundWidget
();
private:
QLabel
*
label
;
...
...
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