equal
deleted
inserted
replaced
336 |
336 |
337 connect(action, SIGNAL(triggered()), this, SLOT(handleMVButton())); |
337 connect(action, SIGNAL(triggered()), this, SLOT(handleMVButton())); |
338 |
338 |
339 // Connect to hide and show signals of the linked snippet |
339 // Connect to hide and show signals of the linked snippet |
340 connectHideShowSignals(button); |
340 connectHideShowSignals(button); |
|
341 //Connect to handle external events of back press |
|
342 connect( button->linkedSnippet(), SIGNAL(externalMouseEvent(QEvent *, const QString , const QString )), this, SLOT(onExternalMouse(QEvent *, const QString , const QString))); |
341 } |
343 } |
342 |
344 |
343 void ContentToolbarSnippet::addToggleTBButton(QAction * action, ActionButtonSnippet* button) { |
345 void ContentToolbarSnippet::addToggleTBButton(QAction * action, ActionButtonSnippet* button) { |
344 |
346 |
345 assert(action); |
347 assert(action); |
455 |
457 |
456 } |
458 } |
457 |
459 |
458 void ContentToolbarSnippet::onAspectChanged( ) { |
460 void ContentToolbarSnippet::onAspectChanged( ) { |
459 |
461 |
|
462 updateOwnerArea(); |
460 // Hide any pop-up that is visible |
463 // Hide any pop-up that is visible |
461 hideOtherPopups(QString()); |
464 hideOtherPopups(QString()); |
462 } |
465 } |
463 |
466 |
464 void ContentToolbarSnippet::onSnippetMouseEvent( QEvent::Type type) { |
467 void ContentToolbarSnippet::onSnippetMouseEvent( QEvent::Type type) { |