-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathhacks.h
54 lines (49 loc) · 1.55 KB
/
hacks.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
* Virtuality Style for Qt4 and Qt5
* Copyright 2009-2014 by Thomas Lübking <[email protected]>
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License version 2
*
* 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 Library General Public License for more details
*
* You should have received a copy of the GNU Library 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.
*/
#ifndef BESPIN_HACKS_H
#define BESPIN_HACKS_H
#include <QObject>
class QWidget;
class QScrollBar;
namespace BE
{
class Hacks : public QObject
{
Q_OBJECT
public:
Hacks() {}
enum HackAppType { Unknown = 0, SMPlayer, Dragon, KDM, Gwenview, VLC, Okular, KDED };
static bool add(QWidget *w);
static void releaseApp();
static void remove(QWidget *w);
static struct Config
{
bool windowMovement, fixGwenview, lockToolBars, lockDocks,
suspendFullscreenPlayers, titleWidgets, panning, suppressBrightnessOSD;
} config;
protected:
bool eventFilter( QObject *, QEvent *);
void timerEvent(QTimerEvent *te);
private slots:
void toggleToolBarLock();
void fixGwenviewPosition();
private:
Q_DISABLE_COPY(Hacks)
};
} // namespace
#endif // BESPIN_HACKS_H