• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

kleopatra

  • Kleo
  • KioAvoidance
  • KIconButton
Signals | Public Member Functions | Properties | List of all members
Kleo::KioAvoidance::KIconButton Class Reference

#include <kleo_kicondialog.h>

Inherits QPushButton.

Signals

void iconChanged (const QString &icon)
 

Public Member Functions

 KIconButton (QWidget *parent=0L)
 
 KIconButton (KIconLoader *loader, QWidget *parent)
 
 ~KIconButton ()
 
const QString & icon () const
 
int iconSize () const
 
void resetIcon ()
 
void setIcon (const QString &icon)
 
void setIcon (const QIcon &icon)
 
void setIconSize (int size)
 
void setIconType (KIconLoader::Group group, KIconLoader::Context context, bool user=false)
 
void setStrictIconSize (bool b)
 
bool strictIconSize () const
 

Properties

QString icon
 
int iconSize
 
bool strictIconSize
 

Detailed Description

A pushbutton for choosing an icon.

Pressing on the button will open a KIconDialog for the user to select an icon. The current icon will be displayed on the button.

See also
KIconDialog A push button that allows selection of an icon.

Definition at line 246 of file kleo_kicondialog.h.

Constructor & Destructor Documentation

KIconButton::KIconButton ( QWidget *  parent = 0L)
explicit

Constructs a KIconButton using the global iconloader.

Parameters
parentThe parent widget.

Definition at line 673 of file kleo_kicondialog.cpp.

KIconButton::KIconButton ( KIconLoader *  loader,
QWidget *  parent 
)

Constructs a KIconButton using a specific KIconLoader.

Parameters
loaderThe icon loader to use.
parentThe parent widget.

Definition at line 679 of file kleo_kicondialog.cpp.

KIconButton::~KIconButton ( )

Destructs the button.

Definition at line 705 of file kleo_kicondialog.cpp.

Member Function Documentation

const QString& Kleo::KioAvoidance::KIconButton::icon ( ) const

Returns the name of the selected icon.

void Kleo::KioAvoidance::KIconButton::iconChanged ( const QString &  icon)
signal

Emitted when the icon has changed.

int Kleo::KioAvoidance::KIconButton::iconSize ( ) const

Returns the iconsize set via setIconSize() or 0, if the default iconsize will be used.

void KIconButton::resetIcon ( )

Resets the icon (reverts to an empty button).

Definition at line 758 of file kleo_kicondialog.cpp.

void KIconButton::setIcon ( const QString &  icon)

Sets the button's initial icon.

Definition at line 738 of file kleo_kicondialog.cpp.

void KIconButton::setIcon ( const QIcon &  icon)

Definition at line 753 of file kleo_kicondialog.cpp.

void KIconButton::setIconSize ( int  size)

Sets the size of the icon to be shown / selected.

See also
KIconLoader::StdSizes
iconSize

Definition at line 720 of file kleo_kicondialog.cpp.

void KIconButton::setIconType ( KIconLoader::Group  group,
KIconLoader::Context  context,
bool  user = false 
)

Sets the icon group and context.

Use KIconLoader::NoGroup if you want to allow icons for any group in the given context.

Definition at line 731 of file kleo_kicondialog.cpp.

void KIconButton::setStrictIconSize ( bool  b)

Sets a strict icon size policy for allowed icons.

When true, only icons of the specified group's size in setIconType are allowed, and only icons of that size will be shown in the icon dialog.

Definition at line 710 of file kleo_kicondialog.cpp.

bool Kleo::KioAvoidance::KIconButton::strictIconSize ( ) const

Returns true if a strict icon size policy is set.

Property Documentation

const QString & KIconButton::icon
readwrite

Definition at line 249 of file kleo_kicondialog.h.

int KIconButton::iconSize
readwrite

Definition at line 250 of file kleo_kicondialog.h.

bool KIconButton::strictIconSize
readwrite

Definition at line 251 of file kleo_kicondialog.h.


The documentation for this class was generated from the following files:
  • kleo_kicondialog.h
  • kleo_kicondialog.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:56:43 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kleopatra

Skip menu "kleopatra"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



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