Check-in Number:
|
3837 | |
Date: |
2002-Dec-04 22:03:16 (local)
2002-Dec-04 21:03:16 (UTC) |
User: | ms |
Branch: | |
Comment: |
Add cross application edition. |
Tickets: |
|
Inspections: |
|
Files: |
|
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
|
|