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
b5617204
Commit
b5617204
authored
Apr 27, 2010
by
Christophe Mutricy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i18n: Factorise qtr() and fix nodes i18n
parent
11333c77
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
modules/gui/qt4/components/playlist/selector.cpp
modules/gui/qt4/components/playlist/selector.cpp
+10
-10
modules/gui/qt4/components/playlist/selector.hpp
modules/gui/qt4/components/playlist/selector.hpp
+1
-1
No files found.
modules/gui/qt4/components/playlist/selector.cpp
View file @
b5617204
...
...
@@ -211,12 +211,12 @@ void PLSelector::setSource( QTreeWidgetItem *item )
}
PLSelItem
*
PLSelector
::
addItem
(
SelectorItemType
type
,
const
QString
&
str
,
bool
drop
,
SelectorItemType
type
,
const
char
*
str
,
bool
drop
,
QTreeWidgetItem
*
parentItem
)
{
QTreeWidgetItem
*
item
=
parentItem
?
new
QTreeWidgetItem
(
parentItem
)
:
new
QTreeWidgetItem
(
this
);
PLSelItem
*
selItem
=
new
PLSelItem
(
item
,
str
);
PLSelItem
*
selItem
=
new
PLSelItem
(
item
,
qtr
(
str
)
);
setItemWidget
(
item
,
0
,
selItem
);
item
->
setData
(
0
,
TYPE_ROLE
,
(
int
)
type
);
if
(
!
drop
)
item
->
setFlags
(
item
->
flags
()
&
~
Qt
::
ItemIsDropEnabled
);
...
...
@@ -244,7 +244,7 @@ PLSelItem *PLSelector::addPodcastItem( playlist_item_t *p_item )
vlc_gc_incref
(
p_item
->
p_input
);
char
*
psz_name
=
input_item_GetName
(
p_item
->
p_input
);
PLSelItem
*
item
=
addItem
(
PL_ITEM_TYPE
,
qfu
(
psz_name
)
,
false
,
podcastsParent
);
PL_ITEM_TYPE
,
psz_name
,
false
,
podcastsParent
);
item
->
addAction
(
RM_ACTION
,
qtr
(
"Remove this podcast subscription"
)
);
item
->
treeItem
()
->
setData
(
0
,
PL_ITEM_ROLE
,
QVariant
::
fromValue
(
p_item
)
);
item
->
treeItem
()
->
setData
(
0
,
PL_ITEM_ID_ROLE
,
QVariant
(
p_item
->
i_id
)
);
...
...
@@ -256,21 +256,21 @@ PLSelItem *PLSelector::addPodcastItem( playlist_item_t *p_item )
void
PLSelector
::
createItems
()
{
PLSelItem
*
pl
=
putPLData
(
addItem
(
PL_ITEM_TYPE
,
qtr
(
"Playlist"
)
,
true
),
PLSelItem
*
pl
=
putPLData
(
addItem
(
PL_ITEM_TYPE
,
"Playlist"
,
true
),
THEPL
->
p_playing
);
pl
->
treeItem
()
->
setData
(
0
,
SPECIAL_ROLE
,
QVariant
(
IS_PL
)
);
PLSelItem
*
ml
=
putPLData
(
addItem
(
PL_ITEM_TYPE
,
qtr
(
"Media Library"
)
,
true
),
PLSelItem
*
ml
=
putPLData
(
addItem
(
PL_ITEM_TYPE
,
"Media Library"
,
true
),
THEPL
->
p_media_library
);
ml
->
treeItem
()
->
setData
(
0
,
SPECIAL_ROLE
,
QVariant
(
IS_ML
)
);
QTreeWidgetItem
*
mycomp
=
addItem
(
CATEGORY_TYPE
,
qtr
(
"My Computer"
)
,
QTreeWidgetItem
*
mycomp
=
addItem
(
CATEGORY_TYPE
,
"My Computer"
,
false
)
->
treeItem
();
QTreeWidgetItem
*
devices
=
addItem
(
CATEGORY_TYPE
,
qtr
(
"Devices"
)
,
QTreeWidgetItem
*
devices
=
addItem
(
CATEGORY_TYPE
,
"Devices"
,
false
)
->
treeItem
();
QTreeWidgetItem
*
lan
=
addItem
(
CATEGORY_TYPE
,
qtr
(
"Local Network"
)
,
QTreeWidgetItem
*
lan
=
addItem
(
CATEGORY_TYPE
,
"Local Network"
,
false
)
->
treeItem
();
QTreeWidgetItem
*
internet
=
addItem
(
CATEGORY_TYPE
,
qtr
(
"Internet"
)
,
QTreeWidgetItem
*
internet
=
addItem
(
CATEGORY_TYPE
,
"Internet"
,
false
)
->
treeItem
();;
char
**
ppsz_longnames
;
...
...
@@ -314,7 +314,7 @@ void PLSelector::createItems()
}
else
{
putSDData
(
addItem
(
SD_TYPE
,
qtr
(
*
ppsz_longname
)
,
false
),
putSDData
(
addItem
(
SD_TYPE
,
*
ppsz_longname
,
false
),
*
ppsz_name
,
*
ppsz_longname
);
}
...
...
modules/gui/qt4/components/playlist/selector.hpp
View file @
b5617204
...
...
@@ -123,7 +123,7 @@ private:
void
createItems
();
void
drawBranches
(
QPainter
*
,
const
QRect
&
,
const
QModelIndex
&
)
const
;
PLSelItem
*
addItem
(
SelectorItemType
type
,
const
QString
&
str
,
bool
drop
,
SelectorItemType
type
,
const
char
*
str
,
bool
drop
,
QTreeWidgetItem
*
parentItem
=
0
);
PLSelItem
*
addPodcastItem
(
playlist_item_t
*
p_item
);
inline
PLSelItem
*
itemWidget
(
QTreeWidgetItem
*
);
...
...
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