diff --git a/kcm_hotkeys/hotkeys_tree_view.h b/kcm_hotkeys/hotkeys_tree_view.h index 0e01aab..65666b5 100644 --- a/kcm_hotkeys/hotkeys_tree_view.h +++ b/kcm_hotkeys/hotkeys_tree_view.h @@ -1,75 +1,74 @@ /* Copyright (C) 2008 Michael Jansen This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef HOTKEYS_TREE_VIEW_H #define HOTKEYS_TREE_VIEW_H #include "libkhotkeysfwd.h" #include "triggers/triggers.h" #include "actions/actions.h" #include #include -class QSignalMapper; class KHotkeysModel; /** * @author Michael Jansen */ class HotkeysTreeView : public QTreeView { Q_OBJECT public: /** * Default constructor */ HotkeysTreeView( QWidget *parent = nullptr ); /** * Destructor */ virtual ~HotkeysTreeView(); /** * The user requested a context menu */ void contextMenuEvent( QContextMenuEvent *event ) Q_DECL_OVERRIDE; /** * Set a new model */ void setModel( QAbstractItemModel *model ) Q_DECL_OVERRIDE; KHotkeysModel *model(); protected: void mouseReleaseEvent(QMouseEvent *me) Q_DECL_OVERRIDE; private Q_SLOTS: void modelReset(); }; #endif /* #ifndef HOTKEYS_TREE_VIEW_H */