myapplication.cpp
资源名称:timer_scr.rar [点击查看]
上传用户:karlzgj
上传日期:2020-03-01
资源大小:68k
文件大小:1k
源码类别:
TAPI编程
开发平台:
QT
- #include "myapplication.h"
- #include <qcopchannel_qws.h>
- #include <ZKeyDef.h>
- //extern MyApplication* app;
- MyApplication::MyApplication(int argc,char *argv[]):ZApplication(argc,argv)
- {
- }
- void MyApplication::slotQuickQuit()
- {
- }
- void MyApplication::slotShutdown()
- {
- }
- void MyApplication::slotRaise()
- {
- qDebug("++++++++++++return3++++++++++");
- QCopChannel::send( "myapplication/timer/", "return()" );
- }
- /*int MyApplication::slotClickAppIcon()
- {
- qDebug("++++++++++++return1++++++++++");
- QCopChannel::send( "PE/mymanager/", "return()" );
- }*/
- /*void MyApplication::keyPressEvent(QKeyEvent* e)
- {
- if (e->key() == KEY_MUSIC ) {
- qDebug("test");
- QCopChannel::send( "PE/mymanager/", "return()" );
- }
- }*/
- /*bool MyApplication::eventFilter(QObject*e, QEvent*k)
- {
- if ( k->type() == QEvent::KeyPress) {
- QKeyEvent *o = (QKeyEvent*)k;
- if (o->key() == KEY_MUSIC ) {
- qDebug("test");
- QCopChannel::send( "PE/mymanager/", "return()" );
- return true;
- }
- return ZApplication::eventFilter( e, k);
- }
- return ZApplication::eventFilter( e, k);
- }*/