]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/settings/serviceitemdelegate.h
Add clang-format and format code as in Frameworks
[dolphin.git] / src / settings / serviceitemdelegate.h
index 7b0d216db7c00963626ddcb25ca91f718694bfce..74f7dfd6a2750462dacd54c7d2a1559ff777219f 100644 (file)
@@ -1,21 +1,8 @@
-/***************************************************************************
- *   Copyright (C) 2011 by Peter Penz <peter.penz19@gmail.com>             *
- *                                                                         *
- *   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: 2011 Peter Penz <peter.penz19@gmail.com>
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
 
 #ifndef SERVICEITEMDELEGATE_H
 #define SERVICEITEMDELEGATE_H
@@ -33,25 +20,21 @@ class ServiceItemDelegate : public KWidgetItemDelegate
     Q_OBJECT
 
 public:
-    explicit ServiceItemDelegate(QAbstractItemView* itemView, QObject* parent = nullptr);
+    explicit ServiceItemDelegate(QAbstractItemView *itemView, QObject *parent = nullptr);
     ~ServiceItemDelegate() override;
 
-    QSize sizeHint(const QStyleOptionViewItem &option,
-                           const QModelIndex &index) const override;
+    QSize sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const override;
 
-    void paint(QPainter* painter, const QStyleOptionViewItem& option,
-                       const QModelIndex& index) const override;
+    void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const override;
 
-    QList<QWidget*> createItemWidgets(const QModelIndex&) const override;
+    QList<QWidget *> createItemWidgets(const QModelIndex &) const override;
 
-    void updateItemWidgets(const QList<QWidget*> widgets,
-                                   const QStyleOptionViewItem& option,
-                                   const QPersistentModelIndex& index) const override;
+    void updateItemWidgets(const QList<QWidget *> widgets, const QStyleOptionViewItem &option, const QPersistentModelIndex &index) const override;
 
-signals:
-    void requestServiceConfiguration(const QModelIndexindex);
+Q_SIGNALS:
+    void requestServiceConfiguration(const QModelIndex &index);
 
-private slots:
+private Q_SLOTS:
     void slotCheckBoxClicked(bool checked);
     void slotConfigureButtonClicked();
 };