File indexing completed on 2024-04-28 04:48:37

0001 /*
0002     SPDX-FileCopyrightText: 2005 Max Howell <max.howell@methylblue.com>
0003     SPDX-FileCopyrightText: 2007 Ian Monroe <ian@monroe.nu>
0004 
0005     SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0006 */
0007 
0008 #ifndef DRAGONPLAYER_FULLSCREENTOOLBARHANDLER_H
0009 #define DRAGONPLAYER_FULLSCREENTOOLBARHANDLER_H
0010 
0011 #include <QObject>
0012 #include <QPoint>
0013 
0014 class KMainWindow;
0015 class QTimerEvent;
0016 
0017 namespace Dragon
0018 {
0019 class FullScreenToolBarHandler : QObject
0020 {
0021     Q_OBJECT
0022 public:
0023     explicit FullScreenToolBarHandler(KMainWindow *parent);
0024     bool eventFilter(QObject *o, QEvent *e) override;
0025     void timerEvent(QTimerEvent *) override;
0026 
0027 private:
0028     int m_timer_id; // 0 when timer is not running
0029     QPoint m_home;
0030     KMainWindow *m_parent;
0031 };
0032 }
0033 #endif