44 #ifndef QT_NO_CLIPBOARD 121 void addTransferredPixmap(
QPixmap pm)
123 transferred[tindex] = pm;
126 void clearTransfers()
174 if (internalCbData == 0) {
201 if (subtype ==
"plain")
216 static bool recursionWatch =
false;
220 recursionWatch =
true;
233 recursionWatch =
false;
239 if (mode != Clipboard)
return 0;
256 if (mode != Clipboard)
return;
264 newText = src->
text();
271 if( oldText != newText ) {
284 return (mode == Clipboard);
289 if (mode == Clipboard)
290 qWarning(
"QClipboard::ownsClipboard: UNIMPLEMENTED!");
302 #endif // QT_NO_CLIPBOARD
void clear(Mode mode=Clipboard)
Clear the clipboard contents.
static void qwsSetClipboardText(const QString &s)
#define QT_END_NAMESPACE
This macro expands to.
static void qwsInitClipboard()
static const int TextClipboard
static QWSDisplay * qwsDisplay()
bool event(QEvent *)
Reimplemented Function
void ownerDestroyed()
Internal cleanup for Windows.
void qAddPostRoutine(QtCleanUpFunction p)
The QByteArray class provides an array of bytes.
int length() const
Returns the number of characters in this string.
bool supportsMode(Mode mode) const
Returns true if the clipboard supports the clipboard mode speacified by mode; otherwise returns false...
void setMimeData(QMimeData *data, Mode mode=Clipboard)
Sets the clipboard data to src.
static QClipboardData * internalCbData
The QString class provides a Unicode character string.
void setText(const QString &, Mode mode=Clipboard)
Copies text into the clipboard as plain text.
bool ownsMode(Mode mode) const
Returns true if the clipboard supports the clipboard data speacified by mode; otherwise returns false...
virtual bool event(QEvent *)
This virtual function receives events to an object and should return true if the event e was recogniz...
The QChar class provides a 16-bit Unicode character.
const QMimeData * mimeData(Mode mode=Clipboard) const
Returns a reference to a QMimeData representation of the current clipboard data.
#define QT_BEGIN_NAMESPACE
This macro expands to.
QString text() const
Returns a plain text (MIME type text/plain) representation of the data.
const QChar * unicode() const
Returns a '\0'-terminated Unicode representation of the string.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
Q_CORE_EXPORT void qWarning(const char *,...)
static const char * data(const QByteArray &arr)
static QString qwsClipboardText()
void setSource(QMimeData *s)
The QMimeData class provides a container for data that records information about its MIME type...
static void cleanupClipboardData()
void addProperty(int winId, int property)
#define QT_USE_NAMESPACE
This macro expands to using QT_NAMESPACE if QT_NAMESPACE is defined and nothing otherwise.
The QPixmap class is an off-screen image representation that can be used as a paint device...
void setText(const QString &text)
Sets text as the plain text (MIME type text/plain) used to represent the data.
The QClipboardEvent class provides the parameters used in a clipboard event.
The QEvent class is the base class of all event classes.
Type type() const
Returns the event type.
QString text(Mode mode=Clipboard) const
Returns the clipboard text as plain text, or an empty string if the clipboard does not contain any te...
static QMimeData * clipboardData
void connectNotify(const char *)
Internal optimization for Windows.