X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/5593c252e8d9638c86dcc2bb9edd394ea14f8ba1..769d1470267247efdffe8b9a2464f21c905d195d:/src/views/dolphinremoteencoding.cpp diff --git a/src/views/dolphinremoteencoding.cpp b/src/views/dolphinremoteencoding.cpp index 116168a4b..41b3b6890 100644 --- a/src/views/dolphinremoteencoding.cpp +++ b/src/views/dolphinremoteencoding.cpp @@ -1,43 +1,31 @@ -/*************************************************************************** - * Copyright (C) 2009 by Rahman Duran * - * * - * 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: 2009 Rahman Duran + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ /* * This code is largely based on the kremoteencodingplugin - * Copyright (c) 2003 Thiago Macieira + * SPDX-FileCopyrightText: 2003 Thiago Macieira * Distributed under the same terms. */ #include "dolphinremoteencoding.h" -#include "dolphinviewactionhandler.h" +#include "dolphinviewactionhandler.h" #include "dolphindebug.h" -#include + #include -#include -#include -#include +#include #include -#include +#include +#include +#include +#include #include #include -#include -#include + +#include #define DATA_KEY QStringLiteral("Charset") @@ -53,7 +41,7 @@ DolphinRemoteEncoding::DolphinRemoteEncoding(QObject* parent, DolphinViewActionH this, &DolphinRemoteEncoding::slotAboutToShow); m_menu->setEnabled(false); - m_menu->setDelayed(false); + m_menu->setPopupMode(QToolButton::InstantPopup); } DolphinRemoteEncoding::~DolphinRemoteEncoding() @@ -187,7 +175,7 @@ void DolphinRemoteEncoding::slotDefault() // settings here since it affects what will be matched. KConfig config(("kio_" + m_currentURL.scheme() + "rc").toLatin1()); - QStringList partList = m_currentURL.host().split('.', QString::SkipEmptyParts); + QStringList partList = m_currentURL.host().split('.', Qt::SkipEmptyParts); if (!partList.isEmpty()) { partList.erase(partList.begin());