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
0ab13a3a
Commit
0ab13a3a
authored
Sep 24, 2010
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: errors dialog: use standard buttons. pack controls.
parent
d43b6be0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
modules/gui/qt4/dialogs/errors.cpp
modules/gui/qt4/dialogs/errors.cpp
+4
-6
No files found.
modules/gui/qt4/dialogs/errors.cpp
View file @
0ab13a3a
...
@@ -43,10 +43,9 @@ ErrorsDialog::ErrorsDialog( intf_thread_t *_p_intf )
...
@@ -43,10 +43,9 @@ ErrorsDialog::ErrorsDialog( intf_thread_t *_p_intf )
QGridLayout
*
layout
=
new
QGridLayout
(
this
);
QGridLayout
*
layout
=
new
QGridLayout
(
this
);
QDialogButtonBox
*
buttonBox
=
new
QDialogButtonBox
;
QDialogButtonBox
*
buttonBox
=
QPushButton
*
closeButton
=
new
QPushButton
(
qtr
(
"&Close"
)
);
new
QDialogButtonBox
(
QDialogButtonBox
::
Close
,
Qt
::
Horizontal
,
this
);
QPushButton
*
clearButton
=
new
QPushButton
(
qtr
(
"&Clear"
)
);
QPushButton
*
clearButton
=
new
QPushButton
(
qtr
(
"&Clear"
)
);
buttonBox
->
addButton
(
closeButton
,
QDialogButtonBox
::
AcceptRole
);
buttonBox
->
addButton
(
clearButton
,
QDialogButtonBox
::
ActionRole
);
buttonBox
->
addButton
(
clearButton
,
QDialogButtonBox
::
ActionRole
);
messages
=
new
QTextEdit
();
messages
=
new
QTextEdit
();
...
@@ -56,10 +55,9 @@ ErrorsDialog::ErrorsDialog( intf_thread_t *_p_intf )
...
@@ -56,10 +55,9 @@ ErrorsDialog::ErrorsDialog( intf_thread_t *_p_intf )
layout
->
addWidget
(
messages
,
0
,
0
,
1
,
3
);
layout
->
addWidget
(
messages
,
0
,
0
,
1
,
3
);
layout
->
addWidget
(
stopShowing
,
1
,
0
);
layout
->
addWidget
(
stopShowing
,
1
,
0
);
layout
->
addItem
(
new
QSpacerItem
(
200
,
20
,
QSizePolicy
::
Expanding
),
2
,
0
);
layout
->
addWidget
(
buttonBox
,
1
,
2
);
layout
->
addWidget
(
buttonBox
,
2
,
2
);
CONNECT
(
buttonBox
,
accep
ted
(),
this
,
close
()
);
CONNECT
(
buttonBox
,
rejec
ted
(),
this
,
close
()
);
BUTTONACT
(
clearButton
,
clear
()
);
BUTTONACT
(
clearButton
,
clear
()
);
BUTTONACT
(
stopShowing
,
dontShow
()
);
BUTTONACT
(
stopShowing
,
dontShow
()
);
}
}
...
...
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