X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/a06ee3399bece608790e419054f95807a017a020..fc9e06426746b5b33d31db68904d4d205537a080:/src/dolphinnewfilemenu.h diff --git a/src/dolphinnewfilemenu.h b/src/dolphinnewfilemenu.h index 254571eb9..d5235db9b 100644 --- a/src/dolphinnewfilemenu.h +++ b/src/dolphinnewfilemenu.h @@ -1,29 +1,14 @@ -/*************************************************************************** - * Copyright (C) 2006 by Peter Penz * - * peter.penz@gmx.at * - * * - * 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 Peter Penz + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ #ifndef DOLPHINNEWFILEMENU_H #define DOLPHINNEWFILEMENU_H -#include +#include "dolphin_export.h" -#include "libdolphin_export.h" +#include class KJob; @@ -35,20 +20,20 @@ class KJob; * All errors are shown in the status bar of Dolphin * instead as modal error dialog with an OK button. */ -class LIBDOLPHINPRIVATE_EXPORT DolphinNewFileMenu : public KNewFileMenu +class DOLPHIN_EXPORT DolphinNewFileMenu : public KNewFileMenu { Q_OBJECT public: - DolphinNewFileMenu(KActionCollection* collection, QObject* parent); - virtual ~DolphinNewFileMenu(); + DolphinNewFileMenu(QAction *createDirAction, QAction *createFileAction, QObject *parent); + ~DolphinNewFileMenu() override; -signals: - void errorMessage(const QString& error); +Q_SIGNALS: + void errorMessage(const QString &error); -protected slots: +protected Q_SLOTS: /** @see KNewFileMenu::slotResult() */ - virtual void slotResult(KJob* job) Q_DECL_OVERRIDE; + void slotResult(KJob *job) override; }; #endif