equal
deleted
inserted
replaced
488 // Remove selected attachment |
488 // Remove selected attachment |
489 emit attachmentLongPressed(mAttachmentList->nmIdByIndex(arrayIndex), point); |
489 emit attachmentLongPressed(mAttachmentList->nmIdByIndex(arrayIndex), point); |
490 } |
490 } |
491 |
491 |
492 /*! |
492 /*! |
493 This slot is called when scroll position has been changed. |
493 This function is called when scroll position has been changed. |
494 Function set new positions for header fields so that header stays visible |
494 Function performs the pre calculated translation to set new positions for header fields |
495 when body is scrolled horizontally. |
495 so that header stays visible when body is scrolled horizontally. |
496 */ |
496 */ |
497 void NmEditorHeader::repositHeader(const QPointF &scrollPosition) |
497 void NmEditorHeader::repositHeader(const QTransform &transform) |
498 { |
498 { |
499 NM_FUNCTION; |
499 NM_FUNCTION; |
500 |
500 |
501 QTransform tr; |
501 mToWidget->setTransform(transform); |
502 tr.translate(scrollPosition.x(),0); |
502 mCcWidget->setTransform(transform); |
503 mToWidget->setTransform(tr); |
503 mBccWidget->setTransform(transform); |
504 mCcWidget->setTransform(tr); |
504 mSubjectWidget->setTransform(transform); |
505 mBccWidget->setTransform(tr); |
505 mAttachmentListWidget->setTransform(transform); |
506 mSubjectWidget->setTransform(tr); |
506 } |
507 mAttachmentListWidget->setTransform(tr); |
507 |
508 } |
|
509 |
|