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
9cac200d
Commit
9cac200d
authored
Mar 04, 2011
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: EPG Dialog: use DialogButtonBox
parent
d854ccd9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
modules/gui/qt4/dialogs/epg.cpp
modules/gui/qt4/dialogs/epg.cpp
+8
-4
No files found.
modules/gui/qt4/dialogs/epg.cpp
View file @
9cac200d
...
@@ -34,6 +34,7 @@
...
@@ -34,6 +34,7 @@
#include <QGroupBox>
#include <QGroupBox>
#include <QPushButton>
#include <QPushButton>
#include <QTextEdit>
#include <QTextEdit>
#include <QDialogButtonBox>
#include "qt4.hpp"
#include "qt4.hpp"
#include "input_manager.hpp"
#include "input_manager.hpp"
...
@@ -73,15 +74,18 @@ EpgDialog::EpgDialog( intf_thread_t *_p_intf ): QVLCFrame( _p_intf )
...
@@ -73,15 +74,18 @@ EpgDialog::EpgDialog( intf_thread_t *_p_intf ): QVLCFrame( _p_intf )
CONNECT
(
epg
,
itemSelectionChanged
(
EPGEvent
*
),
this
,
showEvent
(
EPGEvent
*
)
);
CONNECT
(
epg
,
itemSelectionChanged
(
EPGEvent
*
),
this
,
showEvent
(
EPGEvent
*
)
);
CONNECT
(
THEMIM
->
getIM
(),
epgChanged
(),
this
,
updateInfos
()
);
CONNECT
(
THEMIM
->
getIM
(),
epgChanged
(),
this
,
updateInfos
()
);
QDialogButtonBox
*
buttonsBox
=
new
QDialogButtonBox
(
this
);
#if 0
#if 0
QPushButton *update = new QPushButton( qtr( "Update" ) ); // Temporary to test
QPushButton *update = new QPushButton( qtr( "Update" ) ); // Temporary to test
b
oxLayout->addWidget( update, 0, Qt::AlignRight
);
b
uttonsBox->addButton( update, QDialogButtonBox::ActionRole
);
BUTTONACT( update, updateInfos() );
BUTTONACT( update, updateInfos() );
#endif
#endif
QPushButton
*
close
=
new
QPushButton
(
qtr
(
"&Close"
)
);
buttonsBox
->
addButton
(
new
QPushButton
(
qtr
(
"&Close"
)
),
boxLayout
->
addWidget
(
close
,
0
,
Qt
::
AlignRight
);
QDialogButtonBox
::
RejectRole
);
BUTTONACT
(
close
,
close
()
);
boxLayout
->
addWidget
(
buttonsBox
);
CONNECT
(
buttonsBox
,
rejected
(),
this
,
close
()
);
updateInfos
();
updateInfos
();
readSettings
(
"EPGDialog"
,
QSize
(
650
,
450
)
);
readSettings
(
"EPGDialog"
,
QSize
(
650
,
450
)
);
...
...
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