• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.8.3 API Reference
  • KDE Home
  • Contact Us
 

KDEUI

Public Member Functions | Static Public Member Functions | Protected Member Functions
KToggleFullScreenAction Class Reference

#include <ktogglefullscreenaction.h>

Inheritance diagram for KToggleFullScreenAction:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 KToggleFullScreenAction (QObject *parent)
 KToggleFullScreenAction (QWidget *window, QObject *parent)
virtual ~KToggleFullScreenAction ()
void setWindow (QWidget *window)

Static Public Member Functions

static void setFullScreen (QWidget *window, bool set)

Protected Member Functions

bool eventFilter (QObject *object, QEvent *event)

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

KToggleFullScreenAction::KToggleFullScreenAction ( QObject *  parent) [explicit]

Create a KToggleFullScreenAction.

Call setWindow() to associate this action with a window.

Parameters:
parentThis action's parent object.

Definition at line 47 of file ktogglefullscreenaction.cpp.

KToggleFullScreenAction::KToggleFullScreenAction ( QWidget *  window,
QObject *  parent 
)

Create a KToggleFullScreenAction.

Parameters:
windowthe window that will switch to/from full screen mode
parentThis action's parent object.

Definition at line 54 of file ktogglefullscreenaction.cpp.

KToggleFullScreenAction::~KToggleFullScreenAction ( ) [virtual]

Destroys the toggle fullscreen action.

Definition at line 62 of file ktogglefullscreenaction.cpp.


Member Function Documentation

bool KToggleFullScreenAction::eventFilter ( QObject *  object,
QEvent *  event 
) [protected]

Definition at line 93 of file ktogglefullscreenaction.cpp.

void KToggleFullScreenAction::setFullScreen ( QWidget *  window,
bool  set 
) [static]

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 104 of file ktogglefullscreenaction.cpp.

void KToggleFullScreenAction::setWindow ( QWidget *  window)

Sets the window that will be related to this action.

Definition at line 67 of file ktogglefullscreenaction.cpp.


The documentation for this class was generated from the following files:
  • ktogglefullscreenaction.h
  • ktogglefullscreenaction.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Wed May 2 2012 17:59:24 by doxygen 1.8.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs-4.8.3 API Reference

Skip menu "kdelibs-4.8.3 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal