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
6a5e8468
Commit
6a5e8468
authored
Jan 28, 2010
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EPG: fix QLabel look and saveGeometry
parent
44a2e5fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
modules/gui/qt4/dialogs/epg.cpp
modules/gui/qt4/dialogs/epg.cpp
+7
-4
modules/gui/qt4/dialogs/epg.hpp
modules/gui/qt4/dialogs/epg.hpp
+1
-1
No files found.
modules/gui/qt4/dialogs/epg.cpp
View file @
6a5e8468
...
@@ -55,6 +55,8 @@ EpgDialog::EpgDialog( intf_thread_t *_p_intf ): QVLCFrame( _p_intf )
...
@@ -55,6 +55,8 @@ EpgDialog::EpgDialog( intf_thread_t *_p_intf ): QVLCFrame( _p_intf )
description
=
new
QLabel
(
this
);
description
=
new
QLabel
(
this
);
description
->
setFrameStyle
(
QFrame
::
Sunken
|
QFrame
::
StyledPanel
);
description
->
setFrameStyle
(
QFrame
::
Sunken
|
QFrame
::
StyledPanel
);
description
->
setAutoFillBackground
(
true
);
description
->
setAutoFillBackground
(
true
);
description
->
setWordWrap
(
true
);
description
->
setAlignment
(
Qt
::
AlignLeft
|
Qt
::
AlignTop
);
QPalette
palette
;
QPalette
palette
;
palette
.
setBrush
(
QPalette
::
Active
,
QPalette
::
Window
,
palette
.
brush
(
QPalette
::
Base
)
);
palette
.
setBrush
(
QPalette
::
Active
,
QPalette
::
Window
,
palette
.
brush
(
QPalette
::
Base
)
);
...
@@ -73,18 +75,19 @@ EpgDialog::EpgDialog( intf_thread_t *_p_intf ): QVLCFrame( _p_intf )
...
@@ -73,18 +75,19 @@ EpgDialog::EpgDialog( intf_thread_t *_p_intf ): QVLCFrame( _p_intf )
QPushButton
*
update
=
new
QPushButton
(
"Update"
);
//Temporary to test
QPushButton
*
update
=
new
QPushButton
(
"Update"
);
//Temporary to test
layout
->
addWidget
(
update
,
0
,
Qt
::
AlignRight
);
layout
->
addWidget
(
update
,
0
,
Qt
::
AlignRight
);
BUTTONACT
(
update
,
update
()
);
BUTTONACT
(
update
,
update
Infos
()
);
QPushButton
*
close
=
new
QPushButton
(
qtr
(
"&Close"
)
);
QPushButton
*
close
=
new
QPushButton
(
qtr
(
"&Close"
)
);
layout
->
addWidget
(
close
,
0
,
Qt
::
AlignRight
);
layout
->
addWidget
(
close
,
0
,
Qt
::
AlignRight
);
BUTTONACT
(
close
,
close
()
);
BUTTONACT
(
close
,
close
()
);
updateInfos
();
re
size
(
650
,
400
);
re
adSettings
(
"EPGDialog"
,
QSize
(
650
,
450
)
);
}
}
EpgDialog
::~
EpgDialog
()
EpgDialog
::~
EpgDialog
()
{
{
writeSettings
(
"EPGDialog"
);
}
}
void
EpgDialog
::
showEvent
(
EPGEvent
*
event
)
void
EpgDialog
::
showEvent
(
EPGEvent
*
event
)
...
@@ -98,7 +101,7 @@ void EpgDialog::showEvent( EPGEvent *event )
...
@@ -98,7 +101,7 @@ void EpgDialog::showEvent( EPGEvent *event )
description
->
setText
(
event
->
shortDescription
);
description
->
setText
(
event
->
shortDescription
);
}
}
void
EpgDialog
::
update
()
void
EpgDialog
::
update
Infos
()
{
{
if
(
!
THEMIM
->
getInput
()
)
return
;
if
(
!
THEMIM
->
getInput
()
)
return
;
...
...
modules/gui/qt4/dialogs/epg.hpp
View file @
6a5e8468
...
@@ -45,7 +45,7 @@ private:
...
@@ -45,7 +45,7 @@ private:
private
slots
:
private
slots
:
void
showEvent
(
EPGEvent
*
);
void
showEvent
(
EPGEvent
*
);
void
update
();
void
update
Infos
();
};
};
#endif
#endif
...
...
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