File indexing completed on 2024-04-21 05:54:08
0001 /** 0002 * SPDX-FileCopyrightText: 2021 by Alexander Stippich <a.stippich@gmx.net> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 0007 #include <QDebug> 0008 0009 #include "SkanpageUtils.h" 0010 0011 bool SkanpageUtils::operator==(const PageProperties& lhs, const PageProperties& rhs) 0012 { 0013 return lhs.dpi == rhs.dpi && lhs.pageSize == rhs.pageSize && 0014 lhs.rotationAngle == rhs.rotationAngle && lhs.temporaryFile == rhs.temporaryFile; 0015 } 0016 0017 QDebug SkanpageUtils::operator<<(QDebug d, const PageProperties& pageProperties) 0018 { 0019 d << "DPI: " << pageProperties.dpi << "\n"; 0020 d << "Page size: " << pageProperties.pageSize << "\n"; 0021 d << "Rotation angle: " << pageProperties.rotationAngle << "\n"; 0022 d << "Temporary file: " << pageProperties.temporaryFile.get() << "\n"; 0023 return d; 0024 } 0025 0026 #include "moc_SkanpageUtils.cpp"