src/hbwidgets/editors/hbabstractedit.cpp
changeset 28 b7da29130b0e
parent 21 4633027730f5
child 30 80e4d18b72f5
equal deleted inserted replaced
23:e6ad4ef83b23 28:b7da29130b0e
   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.