equal
deleted
inserted
replaced
883 { |
883 { |
884 #ifndef QT_NO_CLIPBOARD |
884 #ifndef QT_NO_CLIPBOARD |
885 Q_D(HbAbstractEdit); |
885 Q_D(HbAbstractEdit); |
886 if (!(d->interactionFlags & Qt::TextEditable) || !d->cursor.hasSelection()) |
886 if (!(d->interactionFlags & Qt::TextEditable) || !d->cursor.hasSelection()) |
887 return; |
887 return; |
888 copy(); |
888 copy(); |
889 d->cursor.removeSelectedText(); |
889 d->cursor.removeSelectedText(); |
|
890 d->cursorChanged(HbValidator::CursorChangeFromContentUpdate); |
890 #endif//QT_NO_CLIPBOARD |
891 #endif//QT_NO_CLIPBOARD |
891 } |
892 } |
892 |
893 |
893 /*! |
894 /*! |
894 Adds content which is currently selected in editor to clipboard. |
895 Adds content which is currently selected in editor to clipboard. |
924 d->prepDocForPaste(); |
925 d->prepDocForPaste(); |
925 const QMimeData *md = QApplication::clipboard()->mimeData(); |
926 const QMimeData *md = QApplication::clipboard()->mimeData(); |
926 if (md) { |
927 if (md) { |
927 insertFromMimeData(md); |
928 insertFromMimeData(md); |
928 } |
929 } |
929 } |
930 d->cursorChanged(HbValidator::CursorChangeFromContentUpdate); |
930 |
931 } |
931 #endif//QT_NO_CLIPBOARD |
932 #endif//QT_NO_CLIPBOARD |
932 } |
933 } |
933 |
934 |
934 /*! |
935 /*! |
935 Selects the word under the cursor in the editor. |
936 Selects the word under the cursor in the editor. |