X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/fd1a078cc4f5375c856ec49e05c0a33099db8861..cebcf8db:/src/kitemviews/private/kpixmapmodifier.h diff --git a/src/kitemviews/private/kpixmapmodifier.h b/src/kitemviews/private/kpixmapmodifier.h index 3f7747b55..0d86b0157 100644 --- a/src/kitemviews/private/kpixmapmodifier.h +++ b/src/kitemviews/private/kpixmapmodifier.h @@ -1,21 +1,8 @@ -/*************************************************************************** - * Copyright (C) 2011 by Peter Penz * - * * - * This program is free software; you can redistribute it and/or modify * - * it under the terms of the GNU General Public License as published by * - * the Free Software Foundation; either version 2 of the License, or * - * (at your option) any later version. * - * * - * This program 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 General Public License for more details. * - * * - * You should have received a copy of the GNU General Public License * - * along with this program; if not, write to the * - * Free Software Foundation, Inc., * - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * - ***************************************************************************/ +/* + * SPDX-FileCopyrightText: 2011 Peter Penz + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ #ifndef KPIXMAPMODIFIER_H #define KPIXMAPMODIFIER_H @@ -33,14 +20,14 @@ public: * @arg scaledSize is assumed to be the scaled to the same device pixel ratio as the source pixmap * @arg scaledSize is in device pixels */ - static void scale(QPixmap& pixmap, const QSize& scaledSize); + static void scale(QPixmap &pixmap, const QSize &scaledSize); /** * Resize and paint a frame round an icon * @arg scaledSize is in device-independent pixels * The returned image will be scaled by the application devicePixelRatio */ - static void applyFrame(QPixmap& icon, const QSize& scaledSize); + static void applyFrame(QPixmap &icon, const QSize &scaledSize); /** * return and paint a frame round an icon @@ -48,9 +35,7 @@ public: * @return is in device-independent pixels */ - static QSize sizeInsideFrame(const QSize& frameSize); + static QSize sizeInsideFrame(const QSize &frameSize); }; #endif - -