KDEUI
#include <ktogglefullscreenaction.h>
Static Public Member Functions | |
static void | setFullScreen (QWidget *window, bool set) |
Protected Member Functions | |
bool | eventFilter (QObject *object, QEvent *event) |
Additional Inherited Members | |
Public Types inherited from KAction | |
enum | GlobalShortcutLoading { Autoloading = 0x0, NoAutoloading = 0x4 } |
enum | ShortcutType { ActiveShortcut = 0x1, DefaultShortcut = 0x2 } |
Signals inherited from KAction | |
void | authorized (KAuth::Action *action) |
void | globalShortcutChanged (const QKeySequence &) |
void | triggered (Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers) |
Protected Slots inherited from KToggleAction | |
virtual void | slotToggled (bool checked) |
Properties inherited from KAction | |
KShortcut | globalShortcut |
bool | globalShortcutAllowed |
bool | globalShortcutEnabled |
KShortcut | shortcut |
bool | shortcutConfigurable |
Detailed Description
An action for switching between to/from full screen mode.
Note that QWidget::isFullScreen() may reflect the new or the old state depending on how the action was triggered (by the application or from the window manager). Also don't try to track the window state yourself. Rely on this action's state (isChecked()) instead.
Important: If you need to set/change the fullscreen state manually, use KToggleFullScreenAction::setFullScreen() or a similar function, do not call directly the slot connected to the toggled() signal. The slot still needs to explicitly set the window state though.
Note: Do NOT use QWidget::showFullScreen() or QWidget::showNormal(). They have several side-effects besides just switching the fullscreen state (for example, showNormal() resets all window states, not just fullscreen). Use the KToggleFullScreenAction::setFullScreen() helper function.
Definition at line 49 of file ktogglefullscreenaction.h.
Constructor & Destructor Documentation
|
explicit |
Create a KToggleFullScreenAction.
Call setWindow() to associate this action with a window.
- Parameters
-
parent This action's parent object.
Definition at line 64 of file ktogglefullscreenaction.cpp.
Create a KToggleFullScreenAction.
- Parameters
-
window the window that will switch to/from full screen mode parent This action's parent object.
Definition at line 71 of file ktogglefullscreenaction.cpp.
|
virtual |
Destroys the toggle fullscreen action.
Definition at line 79 of file ktogglefullscreenaction.cpp.
Member Function Documentation
Definition at line 101 of file ktogglefullscreenaction.cpp.
Helper function to set or reset the fullscreen state of a window.
Use this function rather than showFullScreen()/showNormal() QWidget functions.
- Since
- 4.0.3
Definition at line 112 of file ktogglefullscreenaction.cpp.
void KToggleFullScreenAction::setWindow | ( | QWidget * | window | ) |
Sets the window that will be related to this action.
Definition at line 84 of file ktogglefullscreenaction.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.