summaryrefslogtreecommitdiffstats
path: root/src/app/fullScreenAction.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/fullScreenAction.h')
-rw-r--r--src/app/fullScreenAction.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/app/fullScreenAction.h b/src/app/fullScreenAction.h
new file mode 100644
index 0000000..4234633
--- /dev/null
+++ b/src/app/fullScreenAction.h
@@ -0,0 +1,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;
+};