InfoPopup Class Reference

#include <infopopup.h>

Inheritance diagram for InfoPopup:

Inheritance graph
[legend]
Collaboration diagram for InfoPopup:

Collaboration graph
[legend]
List of all members.

Public Slots

void slotCopyText (int id)

Public Member Functions

 InfoPopup (QWidget *parent=0, const char *name=0)

Detailed Description

Definition at line 10 of file infopopup.h.


Constructor & Destructor Documentation

InfoPopup::InfoPopup ( QWidget parent = 0,
const char *  name = 0 
) [inline]

Definition at line 15 of file infopopup.h.

References QPopupMenu::activated(), and slotCopyText().

00015                                                          : QPopupMenu(parent, name)
00016   {
00017     connect( this, SIGNAL( activated( int ) ),
00018              this, SLOT( slotCopyText( int ) ) );
00019   }


Member Function Documentation

void InfoPopup::slotCopyText ( int  id  )  [inline, slot]

Definition at line 24 of file infopopup.h.

References QApplication::clipboard(), QClipboard::setText(), and QPopupMenu::text().

Referenced by InfoPopup().

00025   {
00026     QString str =  text(id);
00027     QClipboard *cb = QApplication::clipboard();
00028     
00029     cb->setText( str, QClipboard::Clipboard ); 
00030     
00031   }


The documentation for this class was generated from the following file:
Generated on Fri Jul 17 20:19:48 2009 for ngsview by  doxygen 1.5.1