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
91b3352a
Commit
91b3352a
authored
Jan 27, 2010
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: EPG, add a close button and other GUI improvements
parent
699252e9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
5 deletions
+19
-5
modules/gui/qt4/dialogs/epg.cpp
modules/gui/qt4/dialogs/epg.cpp
+18
-5
modules/gui/qt4/dialogs/epg.hpp
modules/gui/qt4/dialogs/epg.hpp
+1
-0
No files found.
modules/gui/qt4/dialogs/epg.cpp
View file @
91b3352a
...
...
@@ -28,16 +28,18 @@
#include "components/epg/EPGWidget.hpp"
#include <Q
H
BoxLayout>
#include <Q
V
BoxLayout>
#include <QSplitter>
#include <QLabel>
#include <QGroupBox>
#include <QPushButton>
EpgDialog
::
EpgDialog
(
intf_thread_t
*
_p_intf
)
:
QVLCFrame
(
_p_intf
)
{
setWindowTitle
(
"Program Guide"
);
QHBoxLayout
*
layout
=
new
QHBoxLayout
(
this
);
QVBoxLayout
*
layout
=
new
QVBoxLayout
(
this
);
layout
->
setMargin
(
0
);
QSplitter
*
splitter
=
new
QSplitter
(
this
);
EPGWidget
*
epg
=
new
EPGWidget
(
this
);
splitter
->
addWidget
(
epg
);
...
...
@@ -45,7 +47,7 @@ EpgDialog::EpgDialog( intf_thread_t *_p_intf ): QVLCFrame( _p_intf )
QGroupBox
*
descBox
=
new
QGroupBox
(
qtr
(
"Description"
),
this
);
Q
HBoxLayout
*
boxLayout
=
new
QH
BoxLayout
(
descBox
);
Q
VBoxLayout
*
boxLayout
=
new
QV
BoxLayout
(
descBox
);
description
=
new
QLabel
(
this
);
description
->
setFrameStyle
(
QFrame
::
Sunken
|
QFrame
::
StyledPanel
);
...
...
@@ -55,13 +57,22 @@ EpgDialog::EpgDialog( intf_thread_t *_p_intf ): QVLCFrame( _p_intf )
palette
.
setBrush
(
QPalette
::
Active
,
QPalette
::
Window
,
palette
.
brush
(
QPalette
::
Base
)
);
description
->
setPalette
(
palette
);
boxLayout
->
addWidget
(
description
);
title
=
new
QLabel
(
qtr
(
"Title"
),
this
);
boxLayout
->
addWidget
(
title
);
boxLayout
->
addWidget
(
description
,
10
);
splitter
->
addWidget
(
epg
);
splitter
->
addWidget
(
descBox
);
layout
->
addWidget
(
splitter
);
CONNECT
(
epg
,
descriptionChanged
(
EPGEvent
*
),
this
,
showEvent
(
EPGEvent
*
)
);
CONNECT
(
epg
,
itemSelectionChanged
(
EPGEvent
*
),
this
,
showEvent
(
EPGEvent
*
)
);
QPushButton
*
close
=
new
QPushButton
(
qtr
(
"&Close"
)
);
layout
->
addWidget
(
close
,
0
,
Qt
::
AlignRight
);
BUTTONACT
(
close
,
close
()
);
resize
(
650
,
400
);
}
EpgDialog
::~
EpgDialog
()
...
...
@@ -72,5 +83,7 @@ void EpgDialog::showEvent( EPGEvent *event )
{
if
(
!
event
)
return
;
title
->
setText
(
event
->
name
);
description
->
setText
(
event
->
description
);
}
modules/gui/qt4/dialogs/epg.hpp
View file @
91b3352a
...
...
@@ -37,6 +37,7 @@ private:
virtual
~
EpgDialog
();
QLabel
*
description
;
QLabel
*
title
;
friend
class
Singleton
<
EpgDialog
>
;
...
...
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