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
ad55dcbc
Commit
ad55dcbc
authored
Feb 11, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: simplify and solve a leak and make a previous commit unecessary.
parent
2a94c4bb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
32 deletions
+7
-32
modules/gui/qt4/components/controller.cpp
modules/gui/qt4/components/controller.cpp
+7
-9
modules/gui/qt4/components/controller_widget.cpp
modules/gui/qt4/components/controller_widget.cpp
+0
-7
modules/gui/qt4/components/controller_widget.hpp
modules/gui/qt4/components/controller_widget.hpp
+0
-16
No files found.
modules/gui/qt4/components/controller.cpp
View file @
ad55dcbc
...
...
@@ -480,15 +480,14 @@ QFrame *AbstractController::telexFrame()
/**
* Telextext QFrame
**/
TeletextController
*
telexFrame
=
new
TeletextController
(
this
)
;
QFrame
*
telexFrame
=
new
QFrame
;
QHBoxLayout
*
telexLayout
=
new
QHBoxLayout
(
telexFrame
);
telexLayout
->
setSpacing
(
0
);
telexLayout
->
setMargin
(
0
);
CONNECT
(
THEMIM
->
getIM
(),
teletextPossible
(
bool
),
telexFrame
,
setVisible
(
bool
)
);
/* On/Off button */
QToolButton
*
telexOn
=
new
QToolButton
(
this
);
telexFrame
->
telexOn
=
telexOn
;
QToolButton
*
telexOn
=
new
QToolButton
;
setupButton
(
telexOn
);
BUTTON_SET_BAR2
(
telexOn
,
tv
,
qtr
(
"Teletext Activation"
)
);
telexLayout
->
addWidget
(
telexOn
);
...
...
@@ -496,13 +495,10 @@ QFrame *AbstractController::telexFrame()
/* Teletext Activation and set */
CONNECT
(
telexOn
,
clicked
(
bool
),
THEMIM
->
getIM
(),
activateTeletext
(
bool
)
);
CONNECT
(
THEMIM
->
getIM
(),
teletextActivated
(
bool
),
telexFrame
,
enableTeletextButtons
(
bool
)
);
/* Transparency button */
QToolButton
*
telexTransparent
=
new
QToolButton
(
this
);
telexFrame
->
telexTransparent
=
telexTransparent
;
QToolButton
*
telexTransparent
=
new
QToolButton
;
setupButton
(
telexTransparent
);
BUTTON_SET_BAR2
(
telexTransparent
,
tvtelx
,
qtr
(
"Toggle Transparency "
)
);
...
...
@@ -518,8 +514,7 @@ QFrame *AbstractController::telexFrame()
/* Page setting */
QSpinBox
*
telexPage
=
new
QSpinBox
(
this
);
telexFrame
->
telexPage
=
telexPage
;
QSpinBox
*
telexPage
=
new
QSpinBox
(
telexFrame
);
telexPage
->
setRange
(
0
,
999
);
telexPage
->
setValue
(
100
);
telexPage
->
setAccelerated
(
true
);
...
...
@@ -535,6 +530,9 @@ QFrame *AbstractController::telexFrame()
CONNECT
(
THEMIM
->
getIM
(),
newTelexPageSet
(
int
),
telexPage
,
setValue
(
int
)
);
CONNECT
(
THEMIM
->
getIM
(),
teletextActivated
(
bool
),
telexPage
,
setEnabled
(
bool
)
);
CONNECT
(
THEMIM
->
getIM
(),
teletextActivated
(
bool
),
telexTransparent
,
setEnabled
(
bool
)
);
CONNECT
(
THEMIM
->
getIM
(),
teletextActivated
(
bool
),
telexOn
,
setChecked
(
bool
)
);
return
telexFrame
;
}
#undef CONNECT_MAP
...
...
modules/gui/qt4/components/controller_widget.cpp
View file @
ad55dcbc
...
...
@@ -188,13 +188,6 @@ void SoundWidget::updateVolume()
}
}
void
TeletextController
::
enableTeletextButtons
(
bool
b_enabled
)
{
telexOn
->
setChecked
(
b_enabled
);
telexTransparent
->
setEnabled
(
b_enabled
);
telexPage
->
setEnabled
(
b_enabled
);
}
void
PlayButton
::
updateButton
(
bool
b_playing
)
{
setIcon
(
b_playing
?
QIcon
(
":/pause_b"
)
:
QIcon
(
":/play_b"
)
);
...
...
modules/gui/qt4/components/controller_widget.hpp
View file @
ad55dcbc
...
...
@@ -66,22 +66,6 @@ private slots:
void
setIcons
(
bool
,
bool
);
};
class
TeletextController
:
public
QFrame
{
Q_OBJECT
friend
class
AbstractController
;
public:
TeletextController
(
QWidget
*
parent
)
:
QFrame
(
parent
)
{
}
private:
QToolButton
*
telexTransparent
,
*
telexOn
;
QSpinBox
*
telexPage
;
private
slots
:
void
enableTeletextButtons
(
bool
);
};
#define VOLUME_MAX 200
class
VolumeClickHandler
;
...
...
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