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

libkleo

  • sources
  • kde-4.12
  • kdepim
  • libkleo
  • ui
kdhorizontalline.h
Go to the documentation of this file.
1 /* -*- Mode: C++ -*-
2  KD Tools - a set of useful widgets for Qt
3 */
4 
5 /****************************************************************************
6 ** Copyright (C) 2005 Klarälvdalens Datakonsult AB. All rights reserved.
7 **
8 ** This file is part of the KD Tools library.
9 **
10 ** This file may be distributed and/or modified under the terms of the
11 ** GNU General Public License version 2 as published by the Free Software
12 ** Foundation and appearing in the file LICENSE.GPL included in the
13 ** packaging of this file.
14 **
15 ** Licensees holding valid commercial KD Tools licenses may use this file in
16 ** accordance with the KD Tools Commercial License Agreement provided with
17 ** the Software.
18 **
19 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
20 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
21 **
22 ** See http://www.klaralvdalens-datakonsult.se/?page=products for
23 ** information about KD Tools Commercial License Agreements.
24 **
25 ** Contact info@klaralvdalens-datakonsult.se if any conditions of this
26 ** licensing are not clear to you.
27 **
28 ** In addition, as a special exception, the copyright holders give
29 ** permission to link the code of this program with any edition of the
30 ** Qt library by Trolltech AS, Norway (or with modified versions of Qt
31 ** that use the same license as Qt), and distribute linked
32 ** combinations including the two. You must obey the GNU General
33 ** Public License in all respects for all of the code used other than
34 ** Qt. If you modify this file, you may extend this exception to your
35 ** version of the file, but you are not obligated to do so. If you do
36 ** not wish to do so, delete this exception statement from your
37 ** version.
38 **
39 **********************************************************************/
40 
41 #ifndef __KDTOOLS__KDHORIZONTALLINE_H__
42 #define __KDTOOLS__KDHORIZONTALLINE_H__
43 
44 #include "kleo/kleo_export.h"
45 
46 #include <QFrame>
47 
48 class KLEO_EXPORT KDHorizontalLine : public QFrame {
49  Q_OBJECT
50  Q_PROPERTY( QString title READ title WRITE setTitle )
51 public:
52  explicit KDHorizontalLine( QWidget * parent=0, const char * name=0, Qt::WindowFlags f=0 );
53  explicit KDHorizontalLine( const QString & title, QWidget * parent=0, const char * name=0, Qt::WindowFlags f=0 );
54  ~KDHorizontalLine();
55 
56  QString title() const { return mTitle; }
57 
59  void setFrameStyle( int style );
60 
61  QSize sizeHint() const;
62  QSize minimumSizeHint() const;
63  QSizePolicy sizePolicy() const;
64 
65  static int indentHint();
66 
67 public Q_SLOTS:
68  virtual void setTitle( const QString & title );
69 
70 protected:
71  void paintEvent( QPaintEvent * );
72 
73 private:
74  void calculateFrame();
75 
76 private:
77  QString mTitle;
78  Qt::Alignment mAlign;
79  int mLenVisible;
80 };
81 
82 #endif /* __KDTOOLS__KDHORIZONTALLINE_H__ */
83 
name
const char * name
Definition: kconfigbasedkeyfilter.cpp:124
QWidget
QString
KDHorizontalLine::title
QString title() const
Definition: kdhorizontalline.h:56
KLEO_EXPORT
#define KLEO_EXPORT
Definition: kleo_export.h:41
kleo_export.h
KDHorizontalLine
Definition: kdhorizontalline.h:48
QFrame
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:57:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

libkleo

Skip menu "libkleo"
  • 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