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

KDEUI

Public Member Functions
KToggleToolBarAction Class Reference

#include <ktoggletoolbaraction.h>

Inheritance diagram for KToggleToolBarAction:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 KToggleToolBarAction (const char *toolBarName, const QString &text, QObject *parent)
 KToggleToolBarAction (KToolBar *toolBar, const QString &text, QObject *parent)
virtual ~KToggleToolBarAction ()
virtual bool eventFilter (QObject *watched, QEvent *event)
KToolBar * toolBar ()

Detailed Description

An action that takes care of everything associated with showing or hiding a toolbar by a menu action.

It will show or hide the toolbar with the given name when activated, and check or uncheck itself if the toolbar is manually shown or hidden.

If you need to perfom some additional action when the toolbar is shown or hidden, connect to the toggled(bool) signal. It will be emitted after the toolbar's visibility has changed, whenever it changes.

Definition at line 46 of file ktoggletoolbaraction.h.


Constructor & Destructor Documentation

KToggleToolBarAction::KToggleToolBarAction ( const char *  toolBarName,
const QString &  text,
QObject *  parent 
)

Create a KToggleToolbarAction that manages the toolbar named toolBarName.

This can be either the name of a toolbar in an xml ui file, or a toolbar programmatically created with that name.

Parameters:
Theaction's parent object.

Definition at line 53 of file ktoggletoolbaraction.cpp.

KToggleToolBarAction::KToggleToolBarAction ( KToolBar *  toolBar,
const QString &  text,
QObject *  parent 
)

Create a KToggleToolbarAction that manages the.

Parameters:
toolBar.This can be either the name of a toolbar in an xml ui file, or a toolbar programmatically created with that name.
toolBarthe toolbar to be managed
parentThe action's parent object.

Definition at line 60 of file ktoggletoolbaraction.cpp.

KToggleToolBarAction::~KToggleToolBarAction ( ) [virtual]

Destroys toggle toolbar action.

Definition at line 75 of file ktoggletoolbaraction.cpp.


Member Function Documentation

bool KToggleToolBarAction::eventFilter ( QObject *  watched,
QEvent *  event 
) [virtual]

Reimplemented from.

See also:
QObject.

Definition at line 80 of file ktoggletoolbaraction.cpp.

KToolBar * KToggleToolBarAction::toolBar ( )

Returns a pointer to the tool bar it manages.

Definition at line 109 of file ktoggletoolbaraction.cpp.


The documentation for this class was generated from the following files:
  • ktoggletoolbaraction.h
  • ktoggletoolbaraction.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Wed May 2 2012 17:59:25 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