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
eb4d5bcf
Commit
eb4d5bcf
authored
Sep 23, 2010
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: make extended dialog use standard buttons
parent
e7e4692f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
modules/gui/qt4/dialogs/extended.cpp
modules/gui/qt4/dialogs/extended.cpp
+7
-5
No files found.
modules/gui/qt4/dialogs/extended.cpp
View file @
eb4d5bcf
...
...
@@ -32,6 +32,7 @@
#include <QTabWidget>
#include <QGridLayout>
#include <QDialogButtonBox>
#include <vlc_modules.h>
ExtendedDialog
::
ExtendedDialog
(
intf_thread_t
*
_p_intf
)
:
QVLCFrame
(
_p_intf
)
...
...
@@ -41,7 +42,7 @@ ExtendedDialog::ExtendedDialog( intf_thread_t *_p_intf ): QVLCFrame( _p_intf )
setWindowTitle
(
qtr
(
"Adjustments and Effects"
)
);
setWindowRole
(
"vlc-extended"
);
Q
GridLayout
*
layout
=
new
QGrid
Layout
(
this
);
Q
VBoxLayout
*
layout
=
new
QVBox
Layout
(
this
);
layout
->
setContentsMargins
(
0
,
2
,
0
,
1
);
layout
->
setSpacing
(
3
);
...
...
@@ -84,11 +85,12 @@ ExtendedDialog::ExtendedDialog( intf_thread_t *_p_intf ): QVLCFrame( _p_intf )
mainTabW
->
addTab
(
v4l2
,
qtr
(
"v4l2 controls"
)
);
}
layout
->
addWidget
(
mainTabW
,
0
,
0
,
1
,
5
);
layout
->
addWidget
(
mainTabW
);
QPushButton
*
closeButton
=
new
QPushButton
(
qtr
(
"&Close"
)
);
layout
->
addWidget
(
closeButton
,
1
,
4
,
1
,
1
);
CONNECT
(
closeButton
,
clicked
(),
this
,
close
()
);
QDialogButtonBox
*
closeButtonBox
=
new
QDialogButtonBox
(
QDialogButtonBox
::
Close
,
Qt
::
Horizontal
,
this
);
layout
->
addWidget
(
closeButtonBox
);
CONNECT
(
closeButtonBox
,
rejected
(),
this
,
close
()
);
/* Restore geometry or move this dialog on the left pane of the MI */
if
(
!
restoreGeometry
(
getSettings
()
->
value
(
"EPanel/geometry"
).
toByteArray
()
)
)
...
...
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