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

kstars

  • sources
  • kde-4.12
  • kdeedu
  • kstars
  • kstars
  • widgets
kshelplabel.h
Go to the documentation of this file.
1 /***************************************************************************
2  kshelplabel.h - Help label used to document astronomical terms
3  -------------------
4  begin : Wed 1 Dec 2010
5  copyright : (C) 2010 by Valery Kharitonov
6  email : kharvd@gmail.com
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef KSHELPLABEL_H
19 #define KSHELPLABEL_H
20 
21 #include <QtGui/qlabel.h>
22 
26 class KSHelpLabel : public QLabel
27 {
28  Q_OBJECT
29  Q_PROPERTY(QString anchor READ anchor WRITE setAnchor)
30  Q_PROPERTY(QString text READ text WRITE setText)
31 
32 public:
36  explicit KSHelpLabel(QWidget *parent = 0);
37 
43  KSHelpLabel(const QString& text, const QString& anchor,
44  QWidget *parent = 0);
45 
46  QString text() { return m_cleanText; }
47  void setText(const QString& text);
48 
49  void setAnchor(const QString& anchor);
50  QString anchor() { return m_anchor; }
51 
52 private slots:
55  void slotShowDefinition(const QString & term);
56 
57 private:
61  void updateText();
62 
66  QString m_anchor;
67 
71  QString m_cleanText;
72 };
73 
74 #endif // KSHELPLABEL_H
QWidget
KSHelpLabel::anchor
QString anchor()
Definition: kshelplabel.h:50
KSHelpLabel::text
QString text()
Definition: kshelplabel.h:46
KSHelpLabel::setAnchor
void setAnchor(const QString &anchor)
Definition: kshelplabel.cpp:35
QLabel
KSHelpLabel::setText
void setText(const QString &text)
Definition: kshelplabel.cpp:48
KSHelpLabel
Label for displaying links to AstroInfo project.
Definition: kshelplabel.h:26
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kstars

Skip menu "kstars"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

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