2
* Copyright (C) 1997 Michael Roth <mroth@wirlweb.de>
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU Library General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU Library General Public License for more details.
14
* You should have received a copy of the GNU Library General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23
#include <QtGui/QFrame>
26
* Standard horizontal or vertical separator.
28
* @author Michael Roth <mroth@wirlweb.de>
29
* @version $Id: kseparator.h,v 1.14 2004/09/09 15:23:53 faure Exp $
31
class KSeparator : public QFrame
34
Q_PROPERTY( int orientation READ orientation WRITE setOrientation )
38
* @param parent parent object.
39
* @param name name of the new object.
40
* @param f extra QWidget flags.
42
explicit KSeparator( QWidget* parent = 0, Qt::WFlags f = 0 );
46
* @param orientation Set the orientation of the separator.
47
* Possible values are HLine or Horizontal and VLine or Vertical.
48
* @param parent parent object.
49
* @param name name of the new object.
50
* @param f extra QWidget flags.
52
explicit KSeparator( int orientation, QWidget* parent = 0,
56
* Returns the orientation of the separator.
57
* @return int Possible values are VLine and HLine.
59
int orientation() const;
62
* Set the orientation of the separator to @p orient
64
* @param orient Possible values are VLine and HLine.
66
void setOrientation( int orient );
69
* The recommended height (width) for a horizontal (vertical) separator.
71
virtual QSize sizeHint() const;
75
* @param p pointer to painter
77
virtual void drawFrame( QPainter *p );
79
virtual void virtual_hook( int id, void* data );
81
class KSeparatorPrivate* d;
85
#endif // __KSEPARATOR_H__