summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/mainwindow.cpp
Unidiff
Diffstat (limited to 'noncore/apps/opie-console/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp
index 406586c..b177fa5 100644
--- a/noncore/apps/opie-console/mainwindow.cpp
+++ b/noncore/apps/opie-console/mainwindow.cpp
@@ -540,49 +540,49 @@ void MainWindow::slotFullscreen() {
540 ( m_curSession->widgetStack() )->resize( qApp->desktop()->width(), qApp->desktop()->height() ); 540 ( m_curSession->widgetStack() )->resize( qApp->desktop()->width(), qApp->desktop()->height() );
541 ( m_curSession->widgetStack() )->setFocus(); 541 ( m_curSession->widgetStack() )->setFocus();
542 ( m_curSession->widgetStack() )->show(); 542 ( m_curSession->widgetStack() )->show();
543 543
544 ( ( m_curSession->emulationHandler() )->cornerButton() )->show(); 544 ( ( m_curSession->emulationHandler() )->cornerButton() )->show();
545 545
546 connect( ( m_curSession->emulationHandler() )->cornerButton(), SIGNAL( pressed() ), this, SLOT( slotFullscreen() ) ); 546 connect( ( m_curSession->emulationHandler() )->cornerButton(), SIGNAL( pressed() ), this, SLOT( slotFullscreen() ) );
547 } 547 }
548 548
549 m_isFullscreen = !m_isFullscreen; 549 m_isFullscreen = !m_isFullscreen;
550} 550}
551 551
552 552
553void MainWindow::slotKeyReceived(FKey k, ushort, ushort, bool pressed) { 553void MainWindow::slotKeyReceived(FKey k, ushort, ushort, bool pressed) {
554 554
555 if ( m_curSession ) { 555 if ( m_curSession ) {
556 556
557 QEvent::Type state; 557 QEvent::Type state;
558 558
559 if (pressed) state = QEvent::KeyPress; 559 if (pressed) state = QEvent::KeyPress;
560 else state = QEvent::KeyRelease; 560 else state = QEvent::KeyRelease;
561 561
562 QKeyEvent ke(state, k.qcode, k.unicode, 0, QString(QChar(k.unicode))); 562 QKeyEvent ke(state, k.qcode, k.unicode, 0, QString(QChar(k.unicode)));
563 563
564 // where should i send this event? doesnt work sending it here 564 // is this the best way to do this? cant figure out any other way to work
565 QApplication::sendEvent((QObject *)m_curSession->widget(), &ke); 565 QApplication::sendEvent((QObject *)m_curSession->widget(), &ke);
566 ke.ignore(); 566 ke.ignore();
567 } 567 }
568} 568}
569void MainWindow::slotCopy() { 569void MainWindow::slotCopy() {
570 if (!currentSession() ) return; 570 if (!currentSession() ) return;
571 currentSession()->emulationHandler()->copy(); 571 currentSession()->emulationHandler()->copy();
572} 572}
573void MainWindow::slotPaste() { 573void MainWindow::slotPaste() {
574 if (!currentSession() ) return; 574 if (!currentSession() ) return;
575 currentSession()->emulationHandler()->paste(); 575 currentSession()->emulationHandler()->paste();
576} 576}
577 577
578/* 578/*
579 * Save the session 579 * Save the session
580 */ 580 */
581 581
582void MainWindow::slotSaveSession() { 582void MainWindow::slotSaveSession() {
583 if (!currentSession() ) { 583 if (!currentSession() ) {
584 QMessageBox::information(this, tr("Save Connection"), 584 QMessageBox::information(this, tr("Save Connection"),
585 tr("<qt>There is no Connection.</qt>"), 1 ); 585 tr("<qt>There is no Connection.</qt>"), 1 );
586 return; 586 return;
587 } 587 }
588 manager()->add( currentSession()->profile() ); 588 manager()->add( currentSession()->profile() );