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
b100f43e
Commit
b100f43e
authored
Jun 28, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Make GNOME/KDE fanboys happy.
Remove unneeded code. Without qt4.2, you can't compile this GUI anyway.
parent
560b8d0c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
41 deletions
+22
-41
modules/gui/qt4/dialogs/interaction.cpp
modules/gui/qt4/dialogs/interaction.cpp
+22
-4
modules/gui/qt4/util/qvlcframe.hpp
modules/gui/qt4/util/qvlcframe.hpp
+0
-37
No files found.
modules/gui/qt4/dialogs/interaction.cpp
View file @
b100f43e
...
...
@@ -31,6 +31,7 @@
#include <QPushButton>
#include <QProgressBar>
#include <QMessageBox>
#include <QDialogButtonBox>
#include <assert.h>
...
...
@@ -136,10 +137,27 @@ InteractionDialog::InteractionDialog( intf_thread_t *_p_intf,
else
/* Custom box, finish it */
{
QVLCFrame
::
doButtons
(
dialog
,
layout
,
&
defaultButton
,
p_dialog
->
psz_default_button
,
&
altButton
,
p_dialog
->
psz_alternate_button
,
&
otherButton
,
p_dialog
->
psz_other_button
);
QDialogButtonBox
*
buttonBox
=
new
QDialogButtonBox
;
if
(
p_dialog
->
psz_default_button
)
{
defaultButton
=
new
QPushButton
;
defaultButton
->
setFocus
();
defaultButton
->
setText
(
qfu
(
p_dialog
->
psz_default_button
)
);
buttonBox
->
addButton
(
defaultButton
,
QDialogButtonBox
::
AcceptRole
);
}
if
(
p_dialog
->
psz_alternate_button
)
{
altButton
=
new
QPushButton
;
altButton
->
setText
(
qfu
(
p_dialog
->
psz_alternate_button
)
);
buttonBox
->
addButton
(
altButton
,
QDialogButtonBox
::
RejectRole
);
}
if
(
p_dialog
->
psz_other_button
)
{
otherButton
=
new
QPushButton
;
otherButton
->
setText
(
qfu
(
p_dialog
->
psz_other_button
)
);
buttonBox
->
addButton
(
otherButton
,
QDialogButtonBox
::
ActionRole
);
}
if
(
p_dialog
->
psz_default_button
)
BUTTONACT
(
defaultButton
,
defaultB
()
);
if
(
p_dialog
->
psz_alternate_button
)
...
...
modules/gui/qt4/util/qvlcframe.hpp
View file @
b100f43e
...
...
@@ -41,43 +41,6 @@
class
QVLCFrame
:
public
QWidget
{
public:
static
QHBoxLayout
*
doButtons
(
QWidget
*
w
,
QBoxLayout
*
l
,
QPushButton
**
defaul
,
char
*
psz_default
,
QPushButton
**
alt
,
char
*
psz_alt
,
QPushButton
**
other
,
char
*
psz_other
)
{
#ifdef QT42
#else
QHBoxLayout
*
buttons_layout
=
new
QHBoxLayout
;
QSpacerItem
*
spacerItem
=
new
QSpacerItem
(
40
,
20
,
QSizePolicy
::
Expanding
,
QSizePolicy
::
Minimum
);
buttons_layout
->
addItem
(
spacerItem
);
if
(
psz_default
)
{
*
defaul
=
new
QPushButton
(
0
);
(
*
defaul
)
->
setFocus
();
buttons_layout
->
addWidget
(
*
defaul
);
(
*
defaul
)
->
setText
(
qfu
(
psz_default
)
);
}
if
(
psz_alt
)
{
*
alt
=
new
QPushButton
(
0
);
buttons_layout
->
addWidget
(
*
alt
);
(
*
alt
)
->
setText
(
qfu
(
psz_alt
)
);
}
if
(
psz_other
)
{
*
other
=
new
QPushButton
(
0
);
buttons_layout
->
addWidget
(
*
other
);
(
*
other
)
->
setText
(
qfu
(
psz_other
)
);
}
if
(
l
)
l
->
addLayout
(
buttons_layout
);
#endif
return
buttons_layout
;
};
QVLCFrame
(
intf_thread_t
*
_p_intf
)
:
QWidget
(
NULL
),
p_intf
(
_p_intf
)
{
};
virtual
~
QVLCFrame
()
{};
...
...
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