KDE3Support
k3activelabel.h
Go to the documentation of this file.00001 /* This file is part of the KDE libraries 00002 Copyright (C) 1999 Waldo Bastian (bastian@kde.org) 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License as published by the Free Software Foundation; version 2 00007 of the License. 00008 00009 This library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Library General Public License for more details. 00013 00014 You should have received a copy of the GNU Library General Public License 00015 along with this library; see the file COPYING.LIB. If not, write to 00016 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00017 Boston, MA 02110-1301, USA. 00018 */ 00019 00020 #ifndef KACTIVELABEL_H 00021 #define KACTIVELABEL_H 00022 00023 #include <kde3support_export.h> 00024 #include <ktextbrowser.h> 00025 00026 class K3ActiveLabelPrivate; 00036 class KDE3SUPPORT_EXPORT K3ActiveLabel : public KTextBrowser 00037 { 00038 Q_OBJECT 00039 public: 00043 explicit K3ActiveLabel(QWidget * parent = 0); 00044 00048 explicit K3ActiveLabel(const QString & text, QWidget * parent = 0); 00049 00050 virtual ~K3ActiveLabel(); 00051 00052 QSize minimumSizeHint() const; 00053 QSize sizeHint() const; 00054 00055 protected: 00056 virtual void focusInEvent( QFocusEvent* fe ); 00057 virtual void focusOutEvent( QFocusEvent* fe ); 00058 virtual void keyPressEvent ( QKeyEvent * e ); 00059 virtual bool event(QEvent *e); 00060 private: 00061 K3ActiveLabelPrivate *const d; 00062 }; 00063 00064 #endif