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
71542b4b
Commit
71542b4b
authored
Jul 18, 2010
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: preferences, show correctly the column items
Close #3887
parent
e0499d38
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
modules/gui/qt4/components/complete_preferences.cpp
modules/gui/qt4/components/complete_preferences.cpp
+5
-5
No files found.
modules/gui/qt4/components/complete_preferences.cpp
View file @
71542b4b
...
...
@@ -53,9 +53,8 @@ PrefsTree::PrefsTree( intf_thread_t *_p_intf, QWidget *_parent ) :
QTreeWidget
(
_parent
),
p_intf
(
_p_intf
)
{
/* General Qt options */
setColumnCount
(
1
);
setAlternatingRowColors
(
true
);
header
()
->
hide
(
);
setHeaderHidden
(
true
);
setIconSize
(
QSize
(
ITEM_HEIGHT
,
ITEM_HEIGHT
)
);
setTextElideMode
(
Qt
::
ElideNone
);
...
...
@@ -125,7 +124,7 @@ PrefsTree::PrefsTree( intf_thread_t *_p_intf, QWidget *_parent ) :
current_item
=
new
QTreeWidgetItem
();
current_item
->
setText
(
0
,
data
->
name
);
current_item
->
setIcon
(
0
,
icon
);
current_item
->
setSizeHint
(
0
,
QSize
(
-
1
,
ITEM_HEIGHT
)
);
//
current_item->setSizeHint( 0, QSize( -1, ITEM_HEIGHT ) );
current_item
->
setData
(
0
,
Qt
::
UserRole
,
qVariantFromValue
(
data
)
);
addTopLevelItem
(
current_item
);
...
...
@@ -177,7 +176,7 @@ PrefsTree::PrefsTree( intf_thread_t *_p_intf, QWidget *_parent ) :
subcat_item
->
setText
(
0
,
data_sub
->
name
);
subcat_item
->
setData
(
0
,
Qt
::
UserRole
,
qVariantFromValue
(
data_sub
)
);
subcat_item
->
setSizeHint
(
0
,
QSize
(
-
1
,
ITEM_HEIGHT
)
);
//
subcat_item->setSizeHint( 0, QSize( -1, ITEM_HEIGHT ) );
/* Add it to the parent */
assert
(
current_item
);
...
...
@@ -271,7 +270,7 @@ PrefsTree::PrefsTree( intf_thread_t *_p_intf, QWidget *_parent ) :
module_item
->
setText
(
0
,
qtr
(
module_get_name
(
p_module
,
false
)
)
);
module_item
->
setData
(
0
,
Qt
::
UserRole
,
QVariant
::
fromValue
(
module_data
)
);
module_item
->
setSizeHint
(
0
,
QSize
(
-
1
,
ITEM_HEIGHT
)
);
//
module_item->setSizeHint( 0, QSize( -1, ITEM_HEIGHT ) );
subcat_item
->
addChild
(
module_item
);
}
...
...
@@ -279,6 +278,7 @@ PrefsTree::PrefsTree( intf_thread_t *_p_intf, QWidget *_parent ) :
sortItems
(
0
,
Qt
::
AscendingOrder
);
module_list_free
(
p_list
);
resizeColumnToContents
(
0
);
}
PrefsTree
::~
PrefsTree
()
{}
...
...
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