Signals | Public Member Functions | Protected Member Functions | Private Slots | List of all members
HelpLabel Class Reference

#include <helplabel.h>

Inheritance diagram for HelpLabel:

Signals

void enter ()
 
void reset ()
 

Public Member Functions

 HelpLabel (const QString &text)
 

Protected Member Functions

void enterEvent (QEvent *event)
 

Private Slots

void showMenu (const QPoint &p)
 

Detailed Description

Definition at line 7 of file helplabel.h.

Constructor & Destructor Documentation

HelpLabel::HelpLabel ( const QString text)
inline

Definition at line 11 of file helplabel.h.

11  : QLabel(text)
12  { setContextMenuPolicy(Qt::CustomContextMenu);
13  connect(this,SIGNAL(customContextMenuRequested(const QPoint&)),
14  this,SLOT(showMenu(const QPoint&)));
15  }
def connect(nxgraph, k1, k2, p1=0, p2=0, kwds)
Definition: graph.py:30
void showMenu(const QPoint &p)
Definition: helplabel.h:20

Member Function Documentation

void HelpLabel::enter ( )
signal
void HelpLabel::enterEvent ( QEvent *  event)
inlineprotected

Definition at line 30 of file helplabel.h.

30 { enter(); QLabel::enterEvent(event); }
void enter()
Event finding and building.
void HelpLabel::reset ( )
signal
void HelpLabel::showMenu ( const QPoint &  p)
inlineprivateslot

Definition at line 20 of file helplabel.h.

21  {
22  QMenu menu(this);
23  QAction *a = menu.addAction(tr("Reset to default"));
24  if (menu.exec(mapToGlobal(p))==a)
25  {
26  reset();
27  }
28  }
const double a
p
Definition: test.py:223
void reset()

The documentation for this class was generated from the following file: