#include <infopopup.h>
Inheritance diagram for InfoPopup:
Public Slots | |
void | slotCopyText (int id) |
Public Member Functions | |
InfoPopup (QWidget *parent=0, const char *name=0) |
Definition at line 10 of file infopopup.h.
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 }
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 }