summaryrefslogtreecommitdiffstats
path: root/src/app/fullScreenAction.h
blob: 423463311cb1f7c654a0052bf1d42ad42cf61990 (plain)
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
// (C) 2005 Max Howell (max.howell@methylblue.com)
// See COPYING file for licensing information

#include <kaction.h>


/**
 * @class FullSCreenAction
 * @author Max Howell <max.howell@methylblue.com>
 * @short Adapted KToggleFullScreenAction, mainly because that class is shit
 */
class FullScreenAction : public KToggleAction
{
public:
    FullScreenAction( QWidget *window, KActionCollection* );

    virtual void setChecked( bool );
    virtual void setEnabled( bool );

protected:
    virtual bool eventFilter( QObject* o, QEvent* e );

private:
    QWidget *m_window;
    bool m_shouldBeDisabled;
    unsigned long m_state;
};