karrowbutton.h
/* This file is part of the KDE libraries
Copyright (C) 2001, 2002 Frerich Raabe <raabe@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 as published by the Free Software Foundation.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public License
along with this library; see the file COPYING.LIB. If not, write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301, USA.
*/
#ifndef __karrowbutton_h__
#define __karrowbutton_h__
#include <qpushbutton.h>
#include <kdelibs_export.h>
class KArrowButtonPrivate;
class KDEUI_EXPORT KArrowButton : public QPushButton
{
Q_OBJECT
Q_PROPERTY( int arrowType READ arrowTp WRITE setArrowTp )
public:
KArrowButton(QWidget *parent = 0, Qt::ArrowType arrow = Qt::UpArrow,
const char *name = 0);
virtual ~KArrowButton();
virtual QSize sizeHint() const;
Qt::ArrowType arrowType() const;
// hacks for moc braindamages with enums
int arrowTp() const { return (int) arrowType(); }
void setArrowTp( int tp ) { setArrowType( (Qt::ArrowType) tp ); }
public slots:
void setArrowType(Qt::ArrowType a);
protected:
virtual void drawButton(QPainter *);
protected:
virtual void virtual_hook( int id, void* data );
private:
KArrowButtonPrivate *d;
};
#endif // __karrowbutton_h__
KArrowButton
Draws a button with an arrow.
Definition: karrowbutton.h:38

KDE Home | KDE Accessibility Home | Description of Access Keys