author | harlekin <harlekin> | 2002-10-24 12:53:46 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2002-10-24 12:53:46 (UTC) |
commit | 6d502006357bdfa3f2f03d8227dcc7e04fdcc93c (patch) (side-by-side diff) | |
tree | a9be901eb47b62a297b0b27ea7adac27de97228b /noncore/apps/opie-console/quick_button.cpp | |
parent | 36f411501a68daae3195b481d789864dfc9a2ce8 (diff) | |
download | opie-6d502006357bdfa3f2f03d8227dcc7e04fdcc93c.zip opie-6d502006357bdfa3f2f03d8227dcc7e04fdcc93c.tar.gz opie-6d502006357bdfa3f2f03d8227dcc7e04fdcc93c.tar.bz2 |
do not build quickbutton anymore
Diffstat (limited to 'noncore/apps/opie-console/quick_button.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/quick_button.cpp | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/noncore/apps/opie-console/quick_button.cpp b/noncore/apps/opie-console/quick_button.cpp deleted file mode 100644 index 09df901..0000000 --- a/noncore/apps/opie-console/quick_button.cpp +++ b/dev/null @@ -1,67 +0,0 @@ -#include <qevent.h> -#include <qapplication.h> -#include <qaction.h> - -#include <qpe/resource.h> -#include "quick_button.h" - -QuickButton::QuickButton(QWidget *parent) : QFrame(parent) { - - QAction *a; - - // Button Commands - a = new QAction( tr("Enter"), Resource::loadPixmap( "console/enter" ), QString::null, 0, this, 0 ); - connect( a, SIGNAL( activated() ), this, SLOT( hitEnter() ) ); - a->addTo( parent ); - a = new QAction( tr("Space"), Resource::loadPixmap( "console/space" ), QString::null, 0, this, 0 ); - connect( a, SIGNAL( activated() ), this, SLOT( hitSpace() ) ); - a->addTo( parent ); - a = new QAction( tr("Tab"), Resource::loadPixmap( "console/tab" ), QString::null, 0, this, 0 ); - connect( a, SIGNAL( activated() ), this, SLOT( hitTab() ) ); - a->addTo( parent ); - a = new QAction( tr("Up"), Resource::loadPixmap( "console/up" ), QString::null, 0, this, 0 ); - connect( a, SIGNAL( activated() ), this, SLOT( hitUp() ) ); - a->addTo( parent ); - a = new QAction( tr("Down"), Resource::loadPixmap( "console/down" ), QString::null, 0, this, 0 ); - connect( a, SIGNAL( activated() ), this, SLOT( hitDown() ) ); - a->addTo( parent ); - a = new QAction( tr("Paste"), Resource::loadPixmap( "paste" ), QString::null, 0, this, 0 ); - connect( a, SIGNAL( activated() ), this, SLOT( hitPaste() ) ); - a->addTo( parent ); - - -} - -QuickButton::~QuickButton() { -} - - -void QuickButton::hitEnter() { - emit keyPressed( QKeyEvent::KeyPress, Qt::Key_Enter, 0, 1, 0); -} - -void QuickButton::hitSpace() { - emit keyPressed( QKeyEvent::KeyPress, Qt::Key_Space, 0, 1, 0); -} - -void QuickButton::hitTab() { - emit keyPressed( QKeyEvent::KeyPress, Qt::Key_Tab, 0, 1, 0); -} - -void QuickButton::hitPaste() { - /* - TEWidget* te = getTe(); - if (te != 0) { - te->pasteClipboard(); - } - */ -} - -void QuickButton::hitUp() { - emit keyPressed( QKeyEvent::KeyPress, Qt::Key_Up, 0, 1, 0); -} - -void QuickButton::hitDown() { - emit keyPressed( QKeyEvent::KeyPress, Qt::Key_Down, 0, 1, 0); -} - |