make square version of thumb for icon view
This commit is contained in:
+4
-3
@@ -8,6 +8,8 @@
|
||||
#include "panels/project.h"
|
||||
#include "projectmodel.h"
|
||||
|
||||
#include <QPainter>
|
||||
|
||||
#include "debug.h"
|
||||
|
||||
extern "C" {
|
||||
@@ -253,12 +255,11 @@ QVariant Media::data(int column, int role) {
|
||||
switch (role) {
|
||||
case Qt::DecorationRole:
|
||||
if (column == 0) {
|
||||
if (config.project_view_type == PROJECT_VIEW_ICON
|
||||
&& get_type() == MEDIA_TYPE_FOOTAGE) {
|
||||
if (get_type() == MEDIA_TYPE_FOOTAGE) {
|
||||
Footage* f = to_footage();
|
||||
if (f->video_tracks.size() > 0
|
||||
&& f->video_tracks.at(0)->preview_done) {
|
||||
return QIcon(QPixmap::fromImage(f->video_tracks.at(0)->video_preview));
|
||||
return f->video_tracks.at(0)->video_preview_square;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user