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
b08027f1
Commit
b08027f1
authored
Jul 18, 2012
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: PL/ML Model: Factorize zoom functions
parent
04806c15
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
19 deletions
+16
-19
modules/gui/qt4/components/playlist/playlist_model.cpp
modules/gui/qt4/components/playlist/playlist_model.cpp
+0
-13
modules/gui/qt4/components/playlist/playlist_model.hpp
modules/gui/qt4/components/playlist/playlist_model.hpp
+0
-5
modules/gui/qt4/components/playlist/vlc_model.cpp
modules/gui/qt4/components/playlist/vlc_model.cpp
+12
-0
modules/gui/qt4/components/playlist/vlc_model.hpp
modules/gui/qt4/components/playlist/vlc_model.hpp
+4
-1
No files found.
modules/gui/qt4/components/playlist/playlist_model.cpp
View file @
b08027f1
...
...
@@ -1215,19 +1215,6 @@ void PLModel::actionSlot( QAction *action )
}
}
/* */
void
PLModel
::
increaseZoom
()
{
i_zoom
++
;
emit
layoutChanged
();
}
void
PLModel
::
decreaseZoom
()
{
i_zoom
--
;
emit
layoutChanged
();
}
/******************* Drag and Drop helper class ******************/
PlMimeData
::~
PlMimeData
()
{
...
...
modules/gui/qt4/components/playlist/playlist_model.hpp
View file @
b08027f1
...
...
@@ -181,9 +181,6 @@ private:
int
i_cached_id
;
int
i_cached_input_id
;
/* Zoom factor for font-size */
int
i_zoom
;
/* */
QString
latestSearch
;
...
...
@@ -194,8 +191,6 @@ private slots:
void
processItemAppend
(
int
item
,
int
parent
);
void
commitBufferedRowInserts
();
void
activateItem
(
playlist_item_t
*
p_item
);
void
increaseZoom
();
void
decreaseZoom
();
};
class
PlMimeData
:
public
QMimeData
...
...
modules/gui/qt4/components/playlist/vlc_model.cpp
View file @
b08027f1
...
...
@@ -76,3 +76,15 @@ QPixmap VLCModel::getArtPixmap( const QModelIndex & index, const QSize & size )
return
artPix
;
}
void
VLCModel
::
increaseZoom
()
{
i_zoom
++
;
emit
layoutChanged
();
}
void
VLCModel
::
decreaseZoom
()
{
i_zoom
--
;
emit
layoutChanged
();
}
modules/gui/qt4/components/playlist/vlc_model.hpp
View file @
b08027f1
...
...
@@ -115,10 +115,13 @@ public:
public
slots
:
virtual
void
activateItem
(
const
QModelIndex
&
index
)
=
0
;
virtual
void
actionSlot
(
QAction
*
action
)
=
0
;
void
increaseZoom
();
void
decreaseZoom
();
protected:
intf_thread_t
*
p_intf
;
/* Zoom factor for font-size */
int
i_zoom
;
/* FIXME: Probably should belong to View/Delegate */
};
Q_DECLARE_METATYPE
(
VLCModel
::
actionsContainerType
)
...
...
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