Mailinglist Archive: opensuse-commit (1903 mails)

< Previous Next >
commit kdegraphics-thumbnailers for openSUSE:Factory
Hello community,

here is the log from the commit of package kdegraphics-thumbnailers for
openSUSE:Factory checked in at 2019-04-28 20:05:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kdegraphics-thumbnailers (Old)
and /work/SRC/openSUSE:Factory/.kdegraphics-thumbnailers.new.5536 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "kdegraphics-thumbnailers"

Sun Apr 28 20:05:03 2019 rev:103 rq:696236 version:19.04.0

Changes:
--------
---
/work/SRC/openSUSE:Factory/kdegraphics-thumbnailers/kdegraphics-thumbnailers.changes
2019-03-11 13:45:04.237434993 +0100
+++
/work/SRC/openSUSE:Factory/.kdegraphics-thumbnailers.new.5536/kdegraphics-thumbnailers.changes
2019-04-28 20:05:31.522714096 +0200
@@ -1,0 +2,35 @@
+Sat Apr 20 06:51:54 UTC 2019 - lbeltrame@xxxxxxx
+
+- Update to 19.04.0
+ * New feature release
+ * For more details please see:
+ * https://www.kde.org/announcements/announce-applications-19.04.0.php
+- Changes since 19.03.90:
+ * No code changes since 19.03.90
+
+-------------------------------------------------------------------
+Tue Apr 09 20:54:40 UTC 2019 - lbeltrame@xxxxxxx
+
+- Update to 19.03.90
+ * New feature release
+ * For more details please see:
+ * https://kde.org/announcements/announce-applications-19.04-rc.php
+- Changes since 19.03.80:
+ * No code changes since 19.03.80
+
+-------------------------------------------------------------------
+Wed Mar 27 06:40:59 UTC 2019 - lbeltrame@xxxxxxx
+
+- Update to 19.03.80
+ * New feature release
+ * For more details please see:
+ * https://kde.org/announcements/announce-applications-19.04-beta.php
+- Changes since 18.12.3:
+ * Add blender thumbnailer
+ * Remove deprecated method
+ * Use CamelCase kf includes
+ * Use more override
+ * Use more nullptr
+ * Remove explicit use of ECM_KDE_MODULE_DIR, part of ECM_MODULE_PATH
+
+-------------------------------------------------------------------

Old:
----
kdegraphics-thumbnailers-18.12.3.tar.xz

New:
----
kdegraphics-thumbnailers-19.04.0.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ kdegraphics-thumbnailers.spec ++++++
--- /var/tmp/diff_new_pack.B0YGf2/_old 2019-04-28 20:05:32.958713203 +0200
+++ /var/tmp/diff_new_pack.B0YGf2/_new 2019-04-28 20:05:32.986713186 +0200
@@ -20,15 +20,16 @@
# Latest stable Applications (e.g. 17.08 in KA, but 17.11.80 in KUA)
%{!?_kapp_version: %define _kapp_version %(echo %{version}| awk -F. '{print
$1"."$2}')}
Name: kdegraphics-thumbnailers
-Version: 18.12.3
+Version: 19.04.0
Release: 0
Summary: Graphics file thumbnail generators
-License: GPL-2.0-or-later
+License: GPL-2.0-or-later AND LGPL-2.1-or-later
Group: Productivity/Graphics/Other
URL: http://www.kde.org
Source0: %{name}-%{version}.tar.xz
BuildRequires: extra-cmake-modules
BuildRequires: kf5-filesystem
+BuildRequires: karchive-devel
BuildRequires: kio-devel
BuildRequires: libkdcraw-devel
BuildRequires: libkexiv2-devel

++++++ kdegraphics-thumbnailers-18.12.3.tar.xz ->
kdegraphics-thumbnailers-19.04.0.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/kdegraphics-thumbnailers-18.12.3/CMakeLists.txt
new/kdegraphics-thumbnailers-19.04.0/CMakeLists.txt
--- old/kdegraphics-thumbnailers-18.12.3/CMakeLists.txt 2018-10-19
11:34:44.000000000 +0200
+++ new/kdegraphics-thumbnailers-19.04.0/CMakeLists.txt 2019-04-02
09:02:53.000000000 +0200
@@ -4,7 +4,7 @@
set(QT_MIN_VERSION "5.2.0")

find_package(ECM 1.0.0 REQUIRED NO_MODULE)
-set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
+set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})

include(ECMOptionalAddSubdirectory)
include(KDEInstallDirs)
@@ -14,6 +14,7 @@

find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS Gui)
find_package(KF5 REQUIRED COMPONENTS KIO)
+find_package(KF5 REQUIRED COMPONENTS Archive)

add_definitions(-DQT_USE_QSTRINGBUILDER)

@@ -40,4 +41,6 @@
ecm_optional_add_subdirectory(raw)
endif()

+ecm_optional_add_subdirectory(blend)
+
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES
FATAL_ON_MISSING_REQUIRED_PACKAGES)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/kdegraphics-thumbnailers-18.12.3/blend/CMakeLists.txt
new/kdegraphics-thumbnailers-19.04.0/blend/CMakeLists.txt
--- old/kdegraphics-thumbnailers-18.12.3/blend/CMakeLists.txt 1970-01-01
01:00:00.000000000 +0100
+++ new/kdegraphics-thumbnailers-19.04.0/blend/CMakeLists.txt 2019-04-02
09:02:53.000000000 +0200
@@ -0,0 +1,12 @@
+project(blenderthumbnail)
+
+#sources
+set(blenderthumbnail_SRCS blendercreator.cpp)
+add_library(blenderthumbnail MODULE ${blenderthumbnail_SRCS})
+
+## includes and linking
+target_link_libraries(blenderthumbnail Qt5::Core KF5::KIOWidgets KF5::Archive)
+
+## install the plugin
+install(TARGETS blenderthumbnail DESTINATION ${KDE_INSTALL_PLUGINDIR})
+install(FILES blenderthumbnail.desktop DESTINATION
${KDE_INSTALL_KSERVICES5DIR})
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/kdegraphics-thumbnailers-18.12.3/blend/blendercreator.cpp
new/kdegraphics-thumbnailers-19.04.0/blend/blendercreator.cpp
--- old/kdegraphics-thumbnailers-18.12.3/blend/blendercreator.cpp
1970-01-01 01:00:00.000000000 +0100
+++ new/kdegraphics-thumbnailers-19.04.0/blend/blendercreator.cpp
2019-04-02 09:02:53.000000000 +0200
@@ -0,0 +1,146 @@
+/*
+ * Copyright (c) 2019 Chinmoy Ranjan Pradhan <chinmoyrp65@xxxxxxxxx>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) version 3, or any
+ * later version accepted by the membership of KDE e.V. (or its
+ * successor approved by the membership of KDE e.V.), which shall
+ * act as a proxy defined in Section 6 of version 3 of the license.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library. If not, see
<http://www.gnu.org/licenses/>.
+ */
+
+#include "blendercreator.h"
+
+#include <QFile>
+#include <QImage>
+#include <QPointer>
+#include <QtEndian>
+#include <KCompressionDevice>
+
+extern "C"
+{
+ Q_DECL_EXPORT ThumbCreator *new_creator()
+ {
+ return new BlenderCreator;
+ }
+}
+
+BlenderCreator::BlenderCreator() = default;
+
+BlenderCreator::~BlenderCreator() = default;
+
+// For more info. see
https://developer.blender.org/diffusion/B/browse/master/release/bin/blender-thumbnailer.py
+
+bool BlenderCreator::create(const QString &path, int width , int height,
QImage &img)
+{
+ QFile file (path);
+ if(!file.open(QIODevice::ReadOnly)) {
+ return false;
+ }
+
+ QDataStream blendStream;
+ blendStream.setDevice(&file);
+ // Blender has an option to save files with gzip compression. First check
if we are dealing with such files.
+ QPointer<KCompressionDevice> gzFile;
+ if(file.peek(2).startsWith("\x1F\x8B")) { // gzip magic (each gzip member
starts with ID1(0x1f) and ID2(0x8b))
+ file.close();
+ gzFile = new KCompressionDevice(path, KCompressionDevice::GZip);
+ if (gzFile->open(QIODevice::ReadOnly)) {
+ blendStream.setDevice(gzFile);
+ } else {
+ return false;
+ }
+ }
+
+ // First to check is file header.
+ // BLEND file header format
+ // Reference Content Size
+ // id "BLENDER" 7
+ // pointer-size _ (underscore)(32 bit)/ - (minus)(64 bit) 1
+ // endianness v (little) / V (big) 1
+ // version "248" = 2.48 etc. 3
+
+ // Example header: "BLENDER-v257"
+
+ QByteArray head(12, '\0');
+ blendStream.readRawData(head.data(), 12);
+ if(!head.startsWith("BLENDER") || head.right(3).toInt() < 250 /*blender
pre 2.5 had no thumbs*/) {
+ blendStream.device()->close();
+ return false;
+ }
+
+ // Next is file block. This we have to skip.
+ // File block header format
+ // Reference Content
Size
+ // 1. id "REND","TEST", etc.
4
+ // 2. size Total length of the data after the file-block-header
4
+ // 3. old mem. addr Mem. address.
pointer-size i.e, 4(32bit)/8(64bit)
+ // 4. SDNA index Index of SDNA struct
4
+ // 5. count No. of struct in file-block
4
+
+ const bool isLittleEndian = head[8] == 'v';
+ auto toInt32 = [isLittleEndian](const QByteArray &bytes) {
+ return isLittleEndian ? qFromLittleEndian<qint32>(bytes.constData())
+ : qFromBigEndian<qint32>(bytes.constData());
+ };
+
+ const bool is64Bit = head[7] == '-';
+ const int fileBlockHeaderSize = is64Bit ? 24 : 20; // size of file block
header fields 1 to 5
+ QByteArray fileBlockHeader(fileBlockHeaderSize, '\0');
+ qint32 fileBlockSize = 0;
+ while (true) {
+ const int read = blendStream.readRawData(fileBlockHeader.data(),
fileBlockHeaderSize);
+ if (read != fileBlockHeaderSize) {
+ return false;
+ }
+ fileBlockSize = toInt32(fileBlockHeader.mid(4, 4)); // second header
field
+ // skip actual file-block data.
+ if (fileBlockHeader.startsWith("REND")) {
+ blendStream.skipRawData(fileBlockSize);
+ } else {
+ break;
+ }
+ }
+
+ if(!fileBlockHeader.startsWith("TEST")) {
+ blendStream.device()->close();
+ return false;
+ }
+
+ // Now comes actual thumbnail image data.
+ QByteArray xy(8, '\0');
+ blendStream.readRawData(xy.data(), 8);
+ const qint32 x = toInt32(xy.left(4));
+ const qint32 y = toInt32(xy.right(4));
+
+ qint32 imgSize = fileBlockSize - 8;
+ if (imgSize != x * y * 4) {
+ blendStream.device()->close();
+ return false;
+ }
+
+ QByteArray imgBuffer(imgSize, '\0');
+ blendStream.readRawData(imgBuffer.data(), imgSize);
+ QImage thumbnail((const uchar*)imgBuffer.constData(), x, y,
QImage::Format_ARGB32);
+ if(width != 128) {
+ thumbnail = thumbnail.scaledToWidth(width, Qt::SmoothTransformation);
+ }
+ if(height != 128) {
+ thumbnail = thumbnail.scaledToHeight(height, Qt::SmoothTransformation);
+ }
+ thumbnail = thumbnail.rgbSwapped();
+ thumbnail = thumbnail.mirrored();
+ img = thumbnail.convertToFormat(QImage::Format_ARGB32_Premultiplied);
+
+ blendStream.device()->close();
+ return true;
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/kdegraphics-thumbnailers-18.12.3/blend/blendercreator.h
new/kdegraphics-thumbnailers-19.04.0/blend/blendercreator.h
--- old/kdegraphics-thumbnailers-18.12.3/blend/blendercreator.h 1970-01-01
01:00:00.000000000 +0100
+++ new/kdegraphics-thumbnailers-19.04.0/blend/blendercreator.h 2019-04-02
09:02:53.000000000 +0200
@@ -0,0 +1,35 @@
+/*
+ * Copyright (c) 2019 Chinmoy Ranjan Pradhan <chinmoyrp65@xxxxxxxxx>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) version 3, or any
+ * later version accepted by the membership of KDE e.V. (or its
+ * successor approved by the membership of KDE e.V.), which shall
+ * act as a proxy defined in Section 6 of version 3 of the license.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library. If not, see
<http://www.gnu.org/licenses/>.
+ */
+
+#ifndef _BLENDCREATOR_H_
+#define _BLENDCREATOR_H_
+
+#include <KIO/ThumbCreator>
+
+class BlenderCreator : public ThumbCreator
+{
+public:
+ BlenderCreator();
+ ~BlenderCreator() override;
+
+ bool create(const QString &path, int width, int height, QImage &img)
override;
+};
+
+#endif
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/kdegraphics-thumbnailers-18.12.3/blend/blenderthumbnail.desktop
new/kdegraphics-thumbnailers-19.04.0/blend/blenderthumbnail.desktop
--- old/kdegraphics-thumbnailers-18.12.3/blend/blenderthumbnail.desktop
1970-01-01 01:00:00.000000000 +0100
+++ new/kdegraphics-thumbnailers-19.04.0/blend/blenderthumbnail.desktop
2019-04-02 09:02:53.000000000 +0200
@@ -0,0 +1,21 @@
+[Desktop Entry]
+Type=Service
+Name=Blender files
+Name[ca]=Fitxers del Blender
+Name[ca@valencia]=Fitxers del Blender
+Name[de]=Blender-Dateien
+Name[en_GB]=Blender files
+Name[es]=Archivos de Blender
+Name[gl]=Ficheiros de Blender
+Name[nl]=Blender-bestanden
+Name[nn]=Blender-filer
+Name[pt]=Ficheiros do Blender
+Name[pt_BR]=Arquivos do Blender
+Name[sv]=Blender-filer
+Name[uk]=Файли Blender
+Name[x-test]=xxBlender filesxx
+Name[zh_TW]=Blender 檔案
+X-KDE-ServiceTypes=ThumbCreator
+MimeType=application/x-blender;
+X-KDE-Library=blenderthumbnail
+CacheThumbnail=true
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/kdegraphics-thumbnailers-18.12.3/ps/dscparse_adapter.cpp
new/kdegraphics-thumbnailers-19.04.0/ps/dscparse_adapter.cpp
--- old/kdegraphics-thumbnailers-18.12.3/ps/dscparse_adapter.cpp
2018-10-19 11:34:44.000000000 +0200
+++ new/kdegraphics-thumbnailers-19.04.0/ps/dscparse_adapter.cpp
2019-04-02 09:02:53.000000000 +0200
@@ -118,11 +118,11 @@
/*-- KDSC implementation ---------------------------------------------------*/

KDSC::KDSC() :
- _errorHandler( 0 ),
- _commentHandler( 0 )
+ _errorHandler( nullptr ),
+ _commentHandler( nullptr )
{
_cdsc = dsc_init( this );
- Q_ASSERT( _cdsc != 0 );
+ Q_ASSERT( _cdsc != nullptr );
_scanHandler = new KDSCScanHandler( _cdsc );
}

@@ -284,16 +284,16 @@

auto_ptr<KDSCBBOX> KDSC::bbox() const
{
- if( _cdsc->bbox == 0 )
- return auto_ptr<KDSCBBOX>( 0 );
+ if( _cdsc->bbox == nullptr )
+ return auto_ptr<KDSCBBOX>( nullptr );
else
return auto_ptr<KDSCBBOX>( new KDSCBBOX( *_cdsc->bbox ) );
}

auto_ptr<KDSCBBOX> KDSC::page_bbox() const
{
- if( _cdsc->page_bbox == 0 )
- return auto_ptr<KDSCBBOX>( 0 );
+ if( _cdsc->page_bbox == nullptr )
+ return auto_ptr<KDSCBBOX>( nullptr );
else
return auto_ptr<KDSCBBOX>( new KDSCBBOX( *_cdsc->page_bbox ) );
}
@@ -336,8 +336,8 @@
void KDSC::setErrorHandler( KDSCErrorHandler* errorHandler )
{
_errorHandler = errorHandler;
- if( errorHandler == 0 )
- dsc_set_error_function( _cdsc, 0 );
+ if( errorHandler == nullptr )
+ dsc_set_error_function( _cdsc, nullptr );
else
dsc_set_error_function( _cdsc, &errorFunction );
}
@@ -349,12 +349,12 @@

void KDSC::setCommentHandler( KDSCCommentHandler* commentHandler )
{
- if( _commentHandler != 0 && commentHandler == 0 )
+ if( _commentHandler != nullptr && commentHandler == nullptr )
{
delete _scanHandler;
_scanHandler = new KDSCScanHandler( _cdsc );
}
- else if( _commentHandler == 0 && commentHandler != 0 )
+ else if( _commentHandler == nullptr && commentHandler != nullptr )
{
delete _scanHandler;
_scanHandler = new KDSCScanHandlerByLine( _cdsc, commentHandler );
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/kdegraphics-thumbnailers-18.12.3/ps/dscparse_adapter.h
new/kdegraphics-thumbnailers-19.04.0/ps/dscparse_adapter.h
--- old/kdegraphics-thumbnailers-18.12.3/ps/dscparse_adapter.h 2018-10-19
11:34:44.000000000 +0200
+++ new/kdegraphics-thumbnailers-19.04.0/ps/dscparse_adapter.h 2019-04-02
09:02:53.000000000 +0200
@@ -125,7 +125,7 @@

class KDSCOkErrorHandler : public KDSCErrorHandler
{
- Response error( const KDSCError& );
+ Response error( const KDSCError& ) override;
};

class KDSCCommentHandler
@@ -335,7 +335,7 @@
_commentHandler( commentHandler )
{}

- virtual bool scanData( char* buf, unsigned int count );
+ bool scanData( char* buf, unsigned int count ) override;

protected:
KDSCCommentHandler* _commentHandler;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/kdegraphics-thumbnailers-18.12.3/ps/gscreator.cpp
new/kdegraphics-thumbnailers-19.04.0/ps/gscreator.cpp
--- old/kdegraphics-thumbnailers-18.12.3/ps/gscreator.cpp 2018-10-19
11:34:44.000000000 +0200
+++ new/kdegraphics-thumbnailers-19.04.0/ps/gscreator.cpp 2019-04-02
09:02:53.000000000 +0200
@@ -117,12 +117,12 @@
"-dLastPage=1",
"-q",
"-",
- 0, // file name
+ nullptr, // file name
"-c",
"showpage",
"-c",
"quit",
- 0
+ nullptr
};

static const char * gsargs_eps[] = {
@@ -132,11 +132,11 @@
"-dSAFER",
"-dPARANOIDSAFER",
"-dNOPAUSE",
- 0, // page size
- 0, // resolution
+ nullptr, // page size
+ nullptr, // resolution
"-q",
"-",
- 0, // file name
+ nullptr, // file name
"-c",
"pagelevel",
"-c",
@@ -147,7 +147,7 @@
"showpage",
"-c",
"quit",
- 0
+ nullptr
};

static const char *dvipsargs[] = {
@@ -157,8 +157,8 @@
"-q",
"-o",
"-",
- 0, // file name
- 0
+ nullptr, // file name
+ nullptr
};

static bool correctDVI(const QString& filename);
@@ -217,7 +217,7 @@
if (no_dvi)
{
FILE* fp = fopen(QFile::encodeName(path), "r");
- if (fp == 0) return false;
+ if (fp == nullptr) return false;

char buf[4096];
int count;
@@ -407,7 +407,7 @@
tv.tv_usec = 0;

got_sig_term = false;
- if (select(output[0] + 1, &fds, 0, 0, &tv) <= 0) {
+ if (select(output[0] + 1, &fds, nullptr, nullptr, &tv) <= 0) {
if ( ( errno == EINTR || errno == EAGAIN ) && !got_sig_term )
continue;
break; // error, timeout or master wants us to quit (SIGTERM)
}
@@ -524,7 +524,7 @@
{
FILE *fp;
fp = fopen(QFile::encodeName(path), "r");
- if (fp == 0) return false;
+ if (fp == nullptr) return false;

const long previewsize = end - start + 1;

diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/kdegraphics-thumbnailers-18.12.3/ps/gscreator.h
new/kdegraphics-thumbnailers-19.04.0/ps/gscreator.h
--- old/kdegraphics-thumbnailers-18.12.3/ps/gscreator.h 2018-10-19
11:34:44.000000000 +0200
+++ new/kdegraphics-thumbnailers-19.04.0/ps/gscreator.h 2019-04-02
09:02:53.000000000 +0200
@@ -20,16 +20,16 @@
#ifndef _GSCREATOR_H_
#define _GSCREATOR_H_

-#include <kio/thumbcreator.h>
+#include <KIO/ThumbCreator>
#include "dscparse_adapter.h"

class GSCreator : public ThumbCreator, public KDSCCommentHandler
{
public:
GSCreator() {}
- virtual bool create(const QString &path, int, int, QImage &img);
- virtual Flags flags() const;
- void comment(Name name);
+ bool create(const QString &path, int, int, QImage &img) override;
+ Flags flags() const override;
+ void comment(Name name) override;

private:
static bool getEPSIPreview(const QString &path,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/kdegraphics-thumbnailers-18.12.3/raw/rawcreator.cpp
new/kdegraphics-thumbnailers-19.04.0/raw/rawcreator.cpp
--- old/kdegraphics-thumbnailers-18.12.3/raw/rawcreator.cpp 2018-10-19
11:34:44.000000000 +0200
+++ new/kdegraphics-thumbnailers-19.04.0/raw/rawcreator.cpp 2019-04-02
09:02:53.000000000 +0200
@@ -72,24 +72,24 @@
preview = preview.mirrored(true,false);
break;
case KExiv2Iface::KExiv2::ORIENTATION_ROT_180:
- preview = preview.transformed(QMatrix().rotate(180));
+ preview = preview.transformed(QTransform().rotate(180));
break;
case KExiv2Iface::KExiv2::ORIENTATION_VFLIP:
preview = preview.mirrored(false,true);
break;
case KExiv2Iface::KExiv2::ORIENTATION_ROT_90_HFLIP:
preview = preview.mirrored(true,false);
- preview = preview.transformed(QMatrix().rotate(90));
+ preview = preview.transformed(QTransform().rotate(90));
break;
case KExiv2Iface::KExiv2::ORIENTATION_ROT_90:
- preview = preview.transformed(QMatrix().rotate(90));
+ preview = preview.transformed(QTransform().rotate(90));
break;
case KExiv2Iface::KExiv2::ORIENTATION_ROT_90_VFLIP:
preview = preview.mirrored(false,true);
- preview = preview.transformed(QMatrix().rotate(90));
+ preview = preview.transformed(QTransform().rotate(90));
break;
case KExiv2Iface::KExiv2::ORIENTATION_ROT_270:
- preview = preview.transformed(QMatrix().rotate(270));
+ preview = preview.transformed(QTransform().rotate(270));
break;
default:
break;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/kdegraphics-thumbnailers-18.12.3/raw/rawcreator.h
new/kdegraphics-thumbnailers-19.04.0/raw/rawcreator.h
--- old/kdegraphics-thumbnailers-18.12.3/raw/rawcreator.h 2018-10-19
11:34:44.000000000 +0200
+++ new/kdegraphics-thumbnailers-19.04.0/raw/rawcreator.h 2019-04-02
09:02:53.000000000 +0200
@@ -20,15 +20,15 @@
#ifndef RAWCREATOR_H
#define RAWCREATOR_H

-#include <kio/thumbcreator.h>
+#include <KIO/ThumbCreator>

class RAWCreator : public ThumbCreator
{
public:
RAWCreator();
- virtual ~RAWCreator();
- virtual bool create(const QString &path, int width, int height, QImage
&img);
- virtual Flags flags() const;
+ ~RAWCreator() override;
+ bool create(const QString &path, int width, int height, QImage &img)
override;
+ Flags flags() const override;
};

#endif


< Previous Next >
This Thread
  • No further messages