X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/8679115552ec65ccfc6cbc1db68414d80e3a081b..769d1470267247efdffe8b9a2464f21c905d195d:/src/views/viewmodecontroller.cpp diff --git a/src/views/viewmodecontroller.cpp b/src/views/viewmodecontroller.cpp index 28f9ea472..4bdd8321a 100644 --- a/src/views/viewmodecontroller.cpp +++ b/src/views/viewmodecontroller.cpp @@ -1,21 +1,8 @@ -/*************************************************************************** - * Copyright (C) 2010 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: 2010 Peter Penz + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ #include "viewmodecontroller.h" @@ -45,14 +32,14 @@ void ViewModeController::redirectToUrl(const QUrl& url) void ViewModeController::indicateActivationChange(bool active) { - emit activationChanged(active); + Q_EMIT activationChanged(active); } void ViewModeController::setNameFilter(const QString& nameFilter) { if (nameFilter != m_nameFilter) { m_nameFilter = nameFilter; - emit nameFilterChanged(nameFilter); + Q_EMIT nameFilterChanged(nameFilter); } } @@ -67,7 +54,7 @@ void ViewModeController::setZoomLevel(int level) Q_ASSERT(level <= ZoomLevelInfo::maximumLevel()); if (level != m_zoomLevel) { m_zoomLevel = level; - emit zoomLevelChanged(m_zoomLevel); + Q_EMIT zoomLevelChanged(m_zoomLevel); } } @@ -80,8 +67,8 @@ void ViewModeController::setUrl(const QUrl& url) { if (m_url != url) { m_url = url; - emit cancelPreviews(); - emit urlChanged(url); + Q_EMIT cancelPreviews(); + Q_EMIT urlChanged(url); } }