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
31c91f64
Commit
31c91f64
authored
Dec 25, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: small fixes on the toolbar custom dialog
parent
1611d39d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
modules/gui/qt4/components/controller.hpp
modules/gui/qt4/components/controller.hpp
+4
-4
modules/gui/qt4/dialogs/toolbar.cpp
modules/gui/qt4/dialogs/toolbar.cpp
+8
-2
No files found.
modules/gui/qt4/components/controller.hpp
View file @
31c91f64
...
@@ -108,12 +108,12 @@ typedef enum buttonType_e
...
@@ -108,12 +108,12 @@ typedef enum buttonType_e
static
const
char
*
const
nameL
[
BUTTON_MAX
]
=
{
N_
(
"Play"
),
N_
(
"Stop"
),
N_
(
"Open"
),
static
const
char
*
const
nameL
[
BUTTON_MAX
]
=
{
N_
(
"Play"
),
N_
(
"Stop"
),
N_
(
"Open"
),
N_
(
"Previous
/Backward"
),
N_
(
"Next/
Forward"
),
N_
(
"Slower"
),
N_
(
"Faster"
),
N_
(
"Fullscreen"
),
N_
(
"Previous
/ Backward"
),
N_
(
"Next /
Forward"
),
N_
(
"Slower"
),
N_
(
"Faster"
),
N_
(
"Fullscreen"
),
N_
(
"De-Fullscreen"
),
N_
(
"Extended panel"
),
N_
(
"Playlist"
),
N_
(
"Snapshot"
),
N_
(
"De-Fullscreen"
),
N_
(
"Extended panel"
),
N_
(
"Playlist"
),
N_
(
"Snapshot"
),
N_
(
"Record"
),
N_
(
"A->B Loop"
),
N_
(
"Frame By Frame"
),
N_
(
"Trickplay Reverse"
),
N_
(
"Record"
),
N_
(
"A->B Loop"
),
N_
(
"Frame By Frame"
),
N_
(
"Trickplay Reverse"
),
N_
(
"Step backward"
),
N_
(
"Step forward"
),
N_
(
"Quit"
),
N_
(
"Random"
),
N_
(
"Step backward"
),
N_
(
"Step forward"
),
N_
(
"Quit"
),
N_
(
"Random"
),
N_
(
"Loop
/Repeat mode
"
),
N_
(
"Information"
),
N_
(
"Previous"
),
N_
(
"Next"
),
N_
(
"Loop
/ Repeat
"
),
N_
(
"Information"
),
N_
(
"Previous"
),
N_
(
"Next"
),
N_
(
"Open subtitles
file"
),
N_
(
"Fullscreen controller width toggle
"
)
N_
(
"Open subtitles
"
),
N_
(
"Dock fullscreen controller
"
)
};
};
static
const
char
*
const
tooltipL
[
BUTTON_MAX
]
=
{
I_PLAY_TOOLTIP
,
static
const
char
*
const
tooltipL
[
BUTTON_MAX
]
=
{
I_PLAY_TOOLTIP
,
N_
(
"Stop playback"
),
N_
(
"Open a medium"
),
N_
(
"Stop playback"
),
N_
(
"Open a medium"
),
...
@@ -137,7 +137,7 @@ static const QString iconL[BUTTON_MAX] ={ ":/toolbar/play_b", ":/toolbar/stop_b"
...
@@ -137,7 +137,7 @@ static const QString iconL[BUTTON_MAX] ={ ":/toolbar/play_b", ":/toolbar/stop_b"
":/toolbar/frame"
,
":/toolbar/reverse"
,
":/toolbar/skip_back"
,
":/toolbar/frame"
,
":/toolbar/reverse"
,
":/toolbar/skip_back"
,
":/toolbar/skip_fw"
,
":/toolbar/clear"
,
":/buttons/playlist/shuffle_on"
,
":/toolbar/skip_fw"
,
":/toolbar/clear"
,
":/buttons/playlist/shuffle_on"
,
":/buttons/playlist/repeat_all"
,
":/menu/info"
,
":/buttons/playlist/repeat_all"
,
":/menu/info"
,
":/toolbar/previous_b"
,
":/toolbar/next_b"
,
""
,
":/toolbar/space"
":/toolbar/previous_b"
,
":/toolbar/next_b"
,
"
:/toolbar/eject
"
,
":/toolbar/space"
};
};
enum
enum
...
...
modules/gui/qt4/dialogs/toolbar.cpp
View file @
31c91f64
...
@@ -286,7 +286,11 @@ WidgetListing::WidgetListing( intf_thread_t *p_intf, QWidget *_parent )
...
@@ -286,7 +286,11 @@ WidgetListing::WidgetListing( intf_thread_t *p_intf, QWidget *_parent )
/* Normal options */
/* Normal options */
setViewMode
(
QListView
::
IconMode
);
setViewMode
(
QListView
::
IconMode
);
setSpacing
(
20
);
setSpacing
(
8
);
setGridSize
(
QSize
(
90
,
50
)
);
setWrapping
(
true
);
setWordWrap
(
true
);
setTextElideMode
(
Qt
::
ElideNone
);
setDragEnabled
(
true
);
setDragEnabled
(
true
);
/* All the buttons do not need a special rendering */
/* All the buttons do not need a special rendering */
...
@@ -294,7 +298,8 @@ WidgetListing::WidgetListing( intf_thread_t *p_intf, QWidget *_parent )
...
@@ -294,7 +298,8 @@ WidgetListing::WidgetListing( intf_thread_t *p_intf, QWidget *_parent )
{
{
QListWidgetItem
*
widgetItem
=
new
QListWidgetItem
(
this
);
QListWidgetItem
*
widgetItem
=
new
QListWidgetItem
(
this
);
widgetItem
->
setText
(
qtr
(
nameL
[
i
]
)
);
widgetItem
->
setText
(
qtr
(
nameL
[
i
]
)
);
widgetItem
->
setIcon
(
QIcon
(
iconL
[
i
]
)
);
QPixmap
pix
(
iconL
[
i
]
);
widgetItem
->
setIcon
(
pix
.
scaled
(
16
,
16
,
Qt
::
KeepAspectRatio
,
Qt
::
SmoothTransformation
)
);
widgetItem
->
setData
(
Qt
::
UserRole
,
QVariant
(
i
)
);
widgetItem
->
setData
(
Qt
::
UserRole
,
QVariant
(
i
)
);
addItem
(
widgetItem
);
addItem
(
widgetItem
);
}
}
...
@@ -434,6 +439,7 @@ WidgetListing::WidgetListing( intf_thread_t *p_intf, QWidget *_parent )
...
@@ -434,6 +439,7 @@ WidgetListing::WidgetListing( intf_thread_t *p_intf, QWidget *_parent )
layout
->
setForwardButton
(
next
);
layout
->
setForwardButton
(
next
);
layout
->
setRoundButton
(
play
);
layout
->
setRoundButton
(
play
);
}
}
widgetItem
->
setText
(
qtr
(
"Playback Buttons"
)
);
break
;
break
;
default:
default:
msg_Warn
(
p_intf
,
"This should not happen %i"
,
i
);
msg_Warn
(
p_intf
,
"This should not happen %i"
,
i
);
...
...
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