You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

32 lines
605 B

/*
SPDX-FileCopyrightText: 2007 Paolo Capriotti <p.capriotti@gmail.com>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef IMAGESIZEFINDER_H
#define IMAGESIZEFINDER_H
#include <QObject>
#include <QRunnable>
/**
* A runnable that helps find the dimension of an image.
*/
class ImageSizeFinder : public QObject, public QRunnable
{
Q_OBJECT
public:
explicit ImageSizeFinder(const QString &path, QObject *parent = nullptr);
void run() override;
Q_SIGNALS:
void sizeFound(const QString &path, const QSize &size);
private:
QString m_path;
};
#endif // IMAGESIZEFINDER_H