| The Following User Says Thank You to nokiabot For This Useful Post: | ||
| The Following User Says Thank You to nokiabot For This Useful Post: | ||
void FrameBuffer::keyPressEvent(QKeyEvent *event) {
if(event->matches(QKeySequence::Paste)) {
QString clipboard = QApplication::clipboard()->text(QClipboard::Clipboard);
for(int i = 0; i < clipboard.count(); ++i)
keyEvent(clipboard.at(i).unicode());
return;
}
void FrameBuffer::keyPressEvent(QKeyEvent *event) {
if(event->matches(QKeySequence::Paste)) {
QString clipboard = QApplication::clipboard()->text(QClipboard::Clipboard);
for(int i = 0; i < clipboard.count(); ++i)
keyEvent(clipboard.at(i).unicode());
return;
}