summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/vmemo/vmemo.cpp6
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() {
259 259
260void VMemo::receive( const QCString &msg, const QByteArray &data ) { 260void VMemo::receive( const QCString &msg, const QByteArray &data ) {
261 qDebug("receive"); 261 qDebug("receive");
262 QDataStream stream( data, IO_ReadOnly ); 262 QDataStream stream( data, IO_ReadOnly );
263 263
264 if (msg == "toggleRecord()") { 264 if (msg == "toggleRecord()") {
265 265
266 if (recording) { 266 if (recording) {
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 /*&& !systemZaurus*/) { 291// if ( me->button() != LeftButton && me != NULL /*&& !systemZaurus*/) {
292 292
293 // if (!systemZaurus && me != NULL) 293 // if (!systemZaurus && me != NULL)
294 return; 294// return;
295 } 295// }
296 296
297 if(!recording) 297 if(!recording)
298 startRecording(); 298 startRecording();
299 else 299 else
300 stopRecording(); 300 stopRecording();
301} 301}
302 302
303void VMemo::mouseReleaseEvent( QMouseEvent * ) { 303void VMemo::mouseReleaseEvent( QMouseEvent * ) {
304// if(usingIcon && !recording) 304// if(usingIcon && !recording)
305// stopRecording(); 305// stopRecording();
306} 306}
307 307
308bool VMemo::startRecording() { 308bool VMemo::startRecording() {
309 309
310 if ( recording) 310 if ( recording)
311 return FALSE; 311 return FALSE;
312 312
313 Config config( "Vmemo" ); 313 Config config( "Vmemo" );
314 config.setGroup( "System" ); 314 config.setGroup( "System" );
315 315
316 useAlerts = config.readBoolEntry("Alert",1); 316 useAlerts = config.readBoolEntry("Alert",1);
317 if(useAlerts) { 317 if(useAlerts) {
318 318
319 msgLabel = new QLabel( 0, "alertLabel" ); 319 msgLabel = new QLabel( 0, "alertLabel" );
320 msgLabel->setText("<B><P><font size=+2>VMemo-Recording</font></B>"); 320 msgLabel->setText("<B><P><font size=+2>VMemo-Recording</font></B>");
321 msgLabel->show(); 321 msgLabel->show();
322 } 322 }
323 323
324 // if(useAlerts) 324 // if(useAlerts)
325 // QMessageBox::message("VMemo","Really Record?");//) ==1) 325 // QMessageBox::message("VMemo","Really Record?");//) ==1)
326 // return; 326 // return;
327 // } else { 327 // } else {