// For license of this file, see /LICENSE.md. #ifndef BASETREEVIEW_H #define BASETREEVIEW_H #include class RSSGUARD_DLLSPEC BaseTreeView : public QTreeView { Q_OBJECT public: explicit BaseTreeView(QWidget* parent = nullptr); bool isIndexHidden(const QModelIndex& idx) const; protected: virtual void keyPressEvent(QKeyEvent* event); private: QList m_allowedKeyboardKeys; }; #endif // BASETREEVIEW_H