File indexing completed on 2024-05-26 12:48:12
0001 /* This file is part of the KDE project 0002 * SPDX-FileCopyrightText: 2012 Dan Leinir Turthra Jensen <admin@leinir.dk> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef SIMPLETOUCHAREA_H 0008 #define SIMPLETOUCHAREA_H 0009 0010 #include <QQuickItem> 0011 0012 class SimpleTouchArea : public QQuickItem 0013 { 0014 Q_OBJECT 0015 public: 0016 explicit SimpleTouchArea(QQuickItem* parent = 0); 0017 ~SimpleTouchArea() override; 0018 0019 Q_SIGNALS: 0020 void touched(); 0021 0022 protected: 0023 bool event(QEvent* event) override; 0024 void touchEvent(QTouchEvent*) override; 0025 }; 0026 0027 #endif // SIMPLETOUCHAREA_H