X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/e1ba299b29235f337b9cc415d874e5fe369d60fb..38c34eeca315c7be58e65d4d3fb72aaf7b866719:/src/panels/panel.cpp diff --git a/src/panels/panel.cpp b/src/panels/panel.cpp index 40f816158..32f293c4c 100644 --- a/src/panels/panel.cpp +++ b/src/panels/panel.cpp @@ -1,29 +1,16 @@ -/*************************************************************************** - * Copyright (C) 2006 by Cvetoslav Ludmiloff * - * Copyright (C) 2006-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: 2006 Cvetoslav Ludmiloff + * SPDX-FileCopyrightText: 2006-2010 Peter Penz + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ #include "panel.h" -Panel::Panel(QWidget* parent) : - QWidget(parent), - m_url(), - m_customContextMenuActions() +Panel::Panel(QWidget *parent) + : QWidget(parent) + , m_url() + , m_customContextMenuActions() { } @@ -36,12 +23,12 @@ QUrl Panel::url() const return m_url; } -void Panel::setCustomContextMenuActions(const QList& actions) +void Panel::setCustomContextMenuActions(const QList &actions) { m_customContextMenuActions = actions; } -QList Panel::customContextMenuActions() const +QList Panel::customContextMenuActions() const { return m_customContextMenuActions; } @@ -56,7 +43,7 @@ QSize Panel::sizeHint() const return QSize(180, 180); } -void Panel::setUrl(const QUrl& url) +void Panel::setUrl(const QUrl &url) { if (url.matches(m_url, QUrl::StripTrailingSlash)) { return; @@ -71,6 +58,4 @@ void Panel::setUrl(const QUrl& url) void Panel::readSettings() { - } -