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
6d04a56f
Commit
6d04a56f
authored
Aug 24, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: fix column size in complete preferences
Close #3887
parent
204eaed4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
modules/gui/qt4/components/complete_preferences.cpp
modules/gui/qt4/components/complete_preferences.cpp
+9
-3
modules/gui/qt4/components/complete_preferences.hpp
modules/gui/qt4/components/complete_preferences.hpp
+3
-1
No files found.
modules/gui/qt4/components/complete_preferences.cpp
View file @
6d04a56f
/*****************************************************************************
* preferences.cpp : "Normal preferences"
****************************************************************************
* Copyright (C) 2006-20
07
the VideoLAN team
* Copyright (C) 2006-20
11
the VideoLAN team
* $Id$
*
* Authors: Clément Stenac <zorglub@videolan.org>
...
...
@@ -59,6 +59,9 @@ PrefsTree::PrefsTree( intf_thread_t *_p_intf, QWidget *_parent ) :
setIconSize
(
QSize
(
ITEM_HEIGHT
,
ITEM_HEIGHT
)
);
setTextElideMode
(
Qt
::
ElideNone
);
setUniformRowHeights
(
true
);
CONNECT
(
this
,
itemExpanded
(
QTreeWidgetItem
*
),
this
,
resizeColumns
()
);
/* Nice icons */
#define BI( a,b) QIcon a##_icon = QIcon( b )
BI
(
audio
,
":/prefsmenu/advanced/audio"
);
...
...
@@ -285,8 +288,6 @@ PrefsTree::PrefsTree( intf_thread_t *_p_intf, QWidget *_parent ) :
resizeColumnToContents
(
0
);
}
PrefsTree
::~
PrefsTree
()
{}
void
PrefsTree
::
applyAll
()
{
doAll
(
false
);
...
...
@@ -411,6 +412,11 @@ void PrefsTree::filter( const QString &text )
}
}
void
PrefsTree
::
resizeColumns
()
{
resizeColumnToContents
(
0
);
}
/* go over the module config items and search text in psz_text
* also search the module name and head */
bool
PrefsItemData
::
contains
(
const
QString
&
text
,
Qt
::
CaseSensitivity
cs
)
...
...
modules/gui/qt4/components/complete_preferences.hpp
View file @
6d04a56f
...
...
@@ -68,7 +68,6 @@ class PrefsTree : public QTreeWidget
Q_OBJECT
public:
PrefsTree
(
intf_thread_t
*
,
QWidget
*
);
virtual
~
PrefsTree
();
void
applyAll
();
void
cleanAll
();
...
...
@@ -79,6 +78,9 @@ private:
bool
filterItems
(
QTreeWidgetItem
*
item
,
const
QString
&
text
,
Qt
::
CaseSensitivity
cs
);
bool
collapseUnselectedItems
(
QTreeWidgetItem
*
item
);
intf_thread_t
*
p_intf
;
private
slots
:
void
resizeColumns
();
};
class
ConfigControl
;
...
...
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