KToggleFullScreenAction
#include <KToggleFullScreenAction>
Protected Slots | |
void | slotToggled (bool checked) override |
Protected Slots inherited from KToggleAction | |
virtual void | slotToggled (bool checked) |
Protected Member Functions | |
bool | eventFilter (QObject *object, QEvent *event) override |
Protected Member Functions inherited from KToggleAction | |
KWIDGETSADDONS_NO_EXPORT | KToggleAction (KToggleActionPrivate &dd, QObject *parent) |
Protected Member Functions inherited from QAction | |
virtual bool | event (QEvent *e) override |
Protected Member Functions inherited from QObject | |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const QMetaMethod &signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const QMetaMethod &signal) |
bool | isSignalConnected (const QMetaMethod &signal) const const |
int | receivers (const char *signal) const const |
QObject * | sender () const const |
int | senderSignalIndex () const const |
virtual void | timerEvent (QTimerEvent *event) |
Additional Inherited Members | |
Public Types inherited from QAction | |
enum | ActionEvent |
enum | MenuRole |
enum | Priority |
Properties inherited from QAction | |
autoRepeat | |
checkable | |
checked | |
enabled | |
font | |
icon | |
iconText | |
iconVisibleInMenu | |
menuRole | |
priority | |
shortcut | |
shortcutContext | |
shortcutVisibleInContextMenu | |
statusTip | |
text | |
toolTip | |
visible | |
whatsThis | |
Properties inherited from QObject | |
objectName | |
Public Attributes inherited from QAction | |
AboutQtRole | |
AboutRole | |
ApplicationSpecificRole | |
HighPriority | |
Hover | |
LowPriority | |
NormalPriority | |
NoRole | |
PreferencesRole | |
QuitRole | |
TextHeuristicRole | |
Trigger | |
Public Attributes inherited from QObject | |
typedef | QObjectList |
Protected Attributes inherited from KToggleAction | |
std::unique_ptr< class KToggleActionPrivate > const | d_ptr |
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 44 of file ktogglefullscreenaction.h.
Constructor & Destructor Documentation
◆ KToggleFullScreenAction() [1/2]
|
explicit |
Create a KToggleFullScreenAction.
Call setWindow() to associate this action with a window.
- Parameters
-
parent This action's parent object.
Definition at line 47 of file ktogglefullscreenaction.cpp.
◆ KToggleFullScreenAction() [2/2]
Create a KToggleFullScreenAction.
- Parameters
-
window the window that will switch to/from full screen mode parent This action's parent object.
Definition at line 55 of file ktogglefullscreenaction.cpp.
◆ ~KToggleFullScreenAction()
|
overridedefault |
Destroys the toggle fullscreen action.
Member Function Documentation
◆ eventFilter()
|
overrideprotectedvirtual |
Reimplemented from QObject.
Definition at line 86 of file ktogglefullscreenaction.cpp.
◆ setFullScreen()
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 101 of file ktogglefullscreenaction.cpp.
◆ setWindow()
Sets the window that will be related to this action.
Definition at line 66 of file ktogglefullscreenaction.cpp.
◆ slotToggled
|
overrideprotectedslot |
Definition at line 81 of file ktogglefullscreenaction.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:14:43 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.