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

kalarm/lib

label.h

Go to the documentation of this file.
00001 /*
00002  *  label.h  -  label with radiobutton buddy option
00003  *  Program:  kalarm
00004  *  Copyright © 2004-2006 by David Jarvie <software@astrojar.org.uk>
00005  *
00006  *  This program is free software; you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License as published by
00008  *  the Free Software Foundation; either version 2 of the License, or
00009  *  (at your option) any later version.
00010  *
00011  *  This program is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00014  *  GNU General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU General Public License along
00017  *  with this program; if not, write to the Free Software Foundation, Inc.,
00018  *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
00019  */
00020 
00021 #ifndef LABEL_H
00022 #define LABEL_H
00023 
00024 #include <QLabel>
00025 class QFocusEvent;
00026 class QRadioButton;
00027 class LabelFocusWidget;
00028 
00042 class Label : public QLabel
00043 {
00044         Q_OBJECT
00045         friend class LabelFocusWidget;
00046     public:
00051         explicit Label(QWidget* parent, Qt::WFlags f = 0);
00057         Label(const QString& text, QWidget* parent, Qt::WFlags f = 0);
00067         Label(QWidget* buddy, const QString& text, QWidget* parent, Qt::WFlags f = 0);
00072         virtual void      setBuddy(QWidget* buddy);
00073     private slots:
00074         void              buddyDead();
00075     private:
00076         void              activated();
00077         QRadioButton*     mRadioButton;   // buddy widget if it's a radio button, else 0
00078         LabelFocusWidget* mFocusWidget;
00079 };
00080 
00081 
00082 // Private class for use by Label
00083 class LabelFocusWidget : public QWidget
00084 {
00085         Q_OBJECT
00086     public:
00087         LabelFocusWidget(QWidget* parent);
00088     protected:
00089         virtual void focusInEvent(QFocusEvent*);
00090 };
00091 
00092 #endif // LABEL_H

kalarm/lib

Skip menu "kalarm/lib"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal