From 5f44f7b187093ef290315b7f8766b540a31de35f Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sat, 13 Jun 2020 22:45:28 +0900 Subject: Initial code import from debian snapshot https://snapshot.debian.org/package/codeine/1.0.1-3.dfsg-3.1/ Signed-off-by: Michele Calgaro --- src/app/fullScreenAction.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/app/fullScreenAction.h (limited to 'src/app/fullScreenAction.h') 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 + + +/** + * @class FullSCreenAction + * @author Max Howell + * @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; +}; -- cgit v1.2.1