summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-09-19 15:35:19 (UTC)
committer llornkcor <llornkcor>2002-09-19 15:35:19 (UTC)
commit52fdd5cd164cf12d2a615d24497f8bb78491d0c2 (patch) (unidiff)
treedd27262e5ada8ff41b2edffb052acd494d1dfa4f
parent477a620e5745bd30222fe72d9c9b842785c285ab (diff)
downloadopie-52fdd5cd164cf12d2a615d24497f8bb78491d0c2.zip
opie-52fdd5cd164cf12d2a615d24497f8bb78491d0c2.tar.gz
opie-52fdd5cd164cf12d2a615d24497f8bb78491d0c2.tar.bz2
fix
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/applets/vmemo/vmemo.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/applets/vmemo/vmemo.cpp b/core/applets/vmemo/vmemo.cpp
index 4b398ad..2130438 100644
--- a/core/applets/vmemo/vmemo.cpp
+++ b/core/applets/vmemo/vmemo.cpp
@@ -267,51 +267,53 @@ void VMemo::receive( const QCString &msg, const QByteArray &data ) {
267 fromToggle = TRUE; 267 fromToggle = TRUE;
268 mouseReleaseEvent(NULL); 268 mouseReleaseEvent(NULL);
269 stopRecording(); 269 stopRecording();
270 } else { 270 } else {
271 fromToggle = TRUE; 271 fromToggle = TRUE;
272 // mousePressEvent(NULL); 272 // mousePressEvent(NULL);
273 startRecording(); 273 startRecording();
274 } 274 }
275 } 275 }
276} 276}
277 277
278void VMemo::paintEvent( QPaintEvent* ) { 278void VMemo::paintEvent( QPaintEvent* ) {
279 QPainter p(this); 279 QPainter p(this);
280 p.drawPixmap( 0, 1,( const char** ) vmemo_xpm ); 280 p.drawPixmap( 0, 1,( const char** ) vmemo_xpm );
281} 281}
282 282
283void VMemo::mousePressEvent( QMouseEvent * me) { 283void VMemo::mousePressEvent( QMouseEvent * me) {
284 // just to be safe 284 // just to be safe
285 if (recording) { 285 if (recording) {
286 recording = FALSE; 286 recording = FALSE;
287 return; 287 return;
288 } 288 }
289 /* No mousePress/mouseRelease recording on the iPAQ. The REC button on the iPAQ calls these functions 289 /* No mousePress/mouseRelease recording on the iPAQ. The REC button on the iPAQ calls these functions
290 mousePressEvent and mouseReleaseEvent with a NULL parameter. */ 290 mousePressEvent and mouseReleaseEvent with a NULL parameter. */
291 if ( me->button() != LeftButton || me != NULL) 291 if ( me->button() != LeftButton && me != NULL /*&& !systemZaurus*/) {
292
292 // if (!systemZaurus && me != NULL) 293 // if (!systemZaurus && me != NULL)
293 return; 294 return;
295 }
294 296
295 if(!recording) 297 if(!recording)
296 startRecording(); 298 startRecording();
297 else 299 else
298 stopRecording(); 300 stopRecording();
299} 301}
300 302
301void VMemo::mouseReleaseEvent( QMouseEvent * ) { 303void VMemo::mouseReleaseEvent( QMouseEvent * ) {
302// if(usingIcon && !recording) 304// if(usingIcon && !recording)
303// stopRecording(); 305// stopRecording();
304} 306}
305 307
306bool VMemo::startRecording() { 308bool VMemo::startRecording() {
307 309
308 if ( recording) 310 if ( recording)
309 return FALSE; 311 return FALSE;
310 312
311 Config config( "Vmemo" ); 313 Config config( "Vmemo" );
312 config.setGroup( "System" ); 314 config.setGroup( "System" );
313 315
314 useAlerts = config.readBoolEntry("Alert",1); 316 useAlerts = config.readBoolEntry("Alert",1);
315 if(useAlerts) { 317 if(useAlerts) {
316 318
317 msgLabel = new QLabel( 0, "alertLabel" ); 319 msgLabel = new QLabel( 0, "alertLabel" );