File indexing completed on 2025-01-19 04:46:41
0001 /* 0002 SPDX-FileCopyrightText: 2018-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "zoomlabel.h" 0008 #include <KLocalizedString> 0009 0010 ZoomLabel::ZoomLabel(QWidget *parent) 0011 : QLabel(parent) 0012 { 0013 setZoomLabel(100); 0014 } 0015 0016 ZoomLabel::~ZoomLabel() = default; 0017 0018 void ZoomLabel::setZoomLabel(int value) 0019 { 0020 setText(value == 100 ? QString() : i18n("Zoom: %1%", value)); 0021 } 0022 0023 #include "moc_zoomlabel.cpp"