author | llornkcor <llornkcor> | 2002-09-20 14:39:04 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-09-20 14:39:04 (UTC) |
commit | 504e00e215999d5aea32781c9f3067682e255e7c (patch) (side-by-side diff) | |
tree | d3bca71a65bb2f8f0068e520d8cd1b239b2e52f6 | |
parent | ba0e9195f95ecb65216851b9b74fd776d307adc3 (diff) | |
download | opie-504e00e215999d5aea32781c9f3067682e255e7c.zip opie-504e00e215999d5aea32781c9f3067682e255e7c.tar.gz opie-504e00e215999d5aea32781c9f3067682e255e7c.tar.bz2 |
remove keyPress with null param check
-rw-r--r-- | core/applets/vmemo/vmemo.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/applets/vmemo/vmemo.cpp b/core/applets/vmemo/vmemo.cpp index 2130438..ba17732 100644 --- a/core/applets/vmemo/vmemo.cpp +++ b/core/applets/vmemo/vmemo.cpp @@ -259,69 +259,69 @@ VMemo::~VMemo() { void VMemo::receive( const QCString &msg, const QByteArray &data ) { qDebug("receive"); QDataStream stream( data, IO_ReadOnly ); if (msg == "toggleRecord()") { if (recording) { fromToggle = TRUE; mouseReleaseEvent(NULL); stopRecording(); } else { fromToggle = TRUE; // mousePressEvent(NULL); startRecording(); } } } void VMemo::paintEvent( QPaintEvent* ) { QPainter p(this); p.drawPixmap( 0, 1,( const char** ) vmemo_xpm ); } void VMemo::mousePressEvent( QMouseEvent * me) { // just to be safe if (recording) { recording = FALSE; return; } /* No mousePress/mouseRelease recording on the iPAQ. The REC button on the iPAQ calls these functions mousePressEvent and mouseReleaseEvent with a NULL parameter. */ - if ( me->button() != LeftButton && me != NULL /*&& !systemZaurus*/) { +// if ( me->button() != LeftButton && me != NULL /*&& !systemZaurus*/) { // if (!systemZaurus && me != NULL) - return; - } +// return; +// } if(!recording) startRecording(); else stopRecording(); } void VMemo::mouseReleaseEvent( QMouseEvent * ) { // if(usingIcon && !recording) // stopRecording(); } bool VMemo::startRecording() { if ( recording) return FALSE; Config config( "Vmemo" ); config.setGroup( "System" ); useAlerts = config.readBoolEntry("Alert",1); if(useAlerts) { msgLabel = new QLabel( 0, "alertLabel" ); msgLabel->setText("<B><P><font size=+2>VMemo-Recording</font></B>"); msgLabel->show(); } // if(useAlerts) // QMessageBox::message("VMemo","Really Record?");//) ==1) // return; // } else { |