I want to fix bug https://bugs.kde.org/show_bug.cgi?id=358173 (alignment of audio clips and folders).
As I see it, wrong alignment is happening because we just use generic icons for folders and audio clips, but we specially prepare thumbnails for image and video clips.
To fix this, I think we should somehow transfer generic icon to our "preparator" of thumbnails, so icon will become rectangle instead of square. And when we place them on their places, their width will be the same as another clips.
I have explored a bit, and found some related places in code:
bin.h:
void slotRefreshClipThumbnail(const QString &id); void slotThumbnailReady(const QString &id, const QImage &img, bool fromFile = false);
abstractprojectitem.cpp:
QPixmap AbstractProjectItem::roundedPixmap(const QPixmap &source)
projectclip.cpp:
void ProjectClip::setThumbnail(const QImage &img)
projectsubclip.cpp:
void ProjectSubClip::setThumbnail(const QImage &img)
but I could not find exact place, where we send clip as a parameter to somewhat "thumbnailer" to extract an image from. These methods already get images as a parameter.
I tryed to make change of where we set audio thumbnail, but it did not helped.
I am beginner, so have no much experience, and will be glad if somebody of you will help me to study how to contribute with this.