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.
21 lines
415 B
21 lines
415 B
/* |
|
SPDX-FileCopyrightText: 2007 Paolo Capriotti <p.capriotti@gmail.com> |
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later |
|
*/ |
|
|
|
#include "imagesizefinder.h" |
|
|
|
#include <QImageReader> |
|
|
|
ImageSizeFinder::ImageSizeFinder(const QString &path, QObject *parent) |
|
: QObject(parent) |
|
, m_path(path) |
|
{ |
|
} |
|
|
|
void ImageSizeFinder::run() |
|
{ |
|
const QImageReader reader(m_path); |
|
Q_EMIT sizeFound(m_path, reader.size()); |
|
}
|
|
|