ossp-pkg/as/as-gui/as_slot.cpp 1.36 -> 1.37
--- as_slot.cpp 2002/12/04 20:30:54 1.36
+++ as_slot.cpp 2002/12/04 21:03:16 1.37
@@ -68,7 +68,8 @@
pClip = QApplication::clipboard();
Q_ASSERT(!Selection.isNull());
- pClip->setText(Selection, QClipboard::Clipboard);
+ pClip->setText(Selection, QClipboard::Selection); // Doesn't work on Windows
+ pClip->setText(Selection, QClipboard::Clipboard); // Works on both equally
}
//
@@ -80,7 +81,7 @@
QClipboard *pClip; // Will reference the global clipboard
this->addEntry(); // Reuse slot
- Selection = pClip->text(); // Copy data
+ Selection = pClip->text(QClipboard::Clipboard); // Windows and Unix
if (Selection)
setRowdata(Selection); // Use accessor
|
|