summaryrefslogtreecommitdiff
path: root/library
authorsandman <sandman>2002-10-02 21:53:00 (UTC)
committer sandman <sandman>2002-10-02 21:53:00 (UTC)
commit4c8b8e96d841bb12637b5b022dbfeca6dae3d189 (patch) (unidiff)
treece8eb50e5cb9bfd6a5ed3c43e7f22cde25956e84 /library
parent2d0c6327dd40ab6847ce055c40ca59893bc8b9b2 (diff)
downloadopie-4c8b8e96d841bb12637b5b022dbfeca6dae3d189.zip
opie-4c8b8e96d841bb12637b5b022dbfeca6dae3d189.tar.gz
opie-4c8b8e96d841bb12637b5b022dbfeca6dae3d189.tar.bz2
Hack for suspend action is no longer needed
Diffstat (limited to 'library') (more/less context) (ignore whitespace changes)
-rw-r--r--library/global.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/library/global.cpp b/library/global.cpp
index 2e4d03f..9b908bf 100644
--- a/library/global.cpp
+++ b/library/global.cpp
@@ -671,28 +671,24 @@ void Global::execute( const QString &c, const QString& document )
671 } 671 }
672 } 672 }
673 673
674 //Global::invoke(c, document); 674 //Global::invoke(c, document);
675 675
676 // Convert the command line in to a list of arguments 676 // Convert the command line in to a list of arguments
677 QStringList list = QStringList::split(QRegExp(" *"),c); 677 QStringList list = QStringList::split(QRegExp(" *"),c);
678 678
679#if defined(Q_WS_QWS) && !defined(QT_NO_COP) 679#if defined(Q_WS_QWS) && !defined(QT_NO_COP)
680 QString ap=list[0]; 680 QString ap=list[0];
681 681
682 qDebug("executing %s", ap.latin1() ); 682 qDebug("executing %s", ap.latin1() );
683 if ( ap == "suspend" ) {
684 QWSServer::sendKeyEvent( 0xffff, Qt::Key_F34, FALSE, TRUE, FALSE );
685 return;
686 }
687 683
688 /* if need be, sending a qcop message will result in an invoke, see 684 /* if need be, sending a qcop message will result in an invoke, see
689 preceeding function */ 685 preceeding function */
690 invoke( ap ); 686 invoke( ap );
691 //{ QCopEnvelope env( ("QPE/Application/" + ap).latin1(), "raise()" ); } 687 //{ QCopEnvelope env( ("QPE/Application/" + ap).latin1(), "raise()" ); }
692 if ( !document.isEmpty() ) { 688 if ( !document.isEmpty() ) {
693 QCopEnvelope env( ("QPE/Application/" + ap).latin1(), "setDocument(QString)" ); 689 QCopEnvelope env( ("QPE/Application/" + ap).latin1(), "setDocument(QString)" );
694 env << document; 690 env << document;
695 } 691 }
696#endif 692#endif
697} 693}
698 694