#include "qclipboard.h"
#include "qapplication.h"
#include "qapplication_p.h"
#include "qeventloop.h"
#include "qwidget.h"
#include "qevent.h"
#include "qmime.h"
#include "qt_windows.h"
#include "qdnd_p.h"
#include <private/qwidget_p.h>
#include <private/qsystemlibrary_p.h>
#include "qguifunctions_wince.h"
Go to the source code of this file.
◆ OleFlushClipboard
◆ OleGetClipboard
◆ OleSetClipboard
◆ PtrIsHungAppWindow
typedef BOOL(WINAPI * PtrIsHungAppWindow) (HWND) |
◆ cleanupClipboardData()
static void cleanupClipboardData |
( |
| ) |
|
|
static |
◆ clipboardData()
◆ isProcessBeingDebugged()
static bool isProcessBeingDebugged |
( |
HWND |
| ) |
|
|
static |
◆ QtCeFlushClipboard()
void QtCeFlushClipboard |
( |
| ) |
|
◆ QtCeGetClipboard()
HRESULT QtCeGetClipboard |
( |
IDataObject ** |
obj | ) |
|
Definition at line 197 of file qclipboard_win.cpp.
200 if (!OpenClipboard(owner))
203 if (!IsClipboardFormatAvailable(CF_TEXT) && !IsClipboardFormatAvailable(CF_UNICODETEXT))
206 HANDLE clipData = GetClipboardData(CF_TEXT);
209 clipData = GetClipboardData(CF_UNICODETEXT);
static QString fromWCharArray(const wchar_t *, int size=-1)
Returns a copy of the string, where the encoding of string depends on the size of wchar...
The QString class provides a Unicode character string.
QWidget * clipBoardViewer
static const char * data(const QByteArray &arr)
The QMimeData class provides a container for data that records information about its MIME type...
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
void setText(const QString &text)
Sets text as the plain text (MIME type text/plain) used to represent the data.
static QClipboardData * ptrClipboardData
◆ QtCeSetClipboard()
HRESULT QtCeSetClipboard |
( |
IDataObject * |
obj | ) |
|
Definition at line 224 of file qclipboard_win.cpp.
227 if (!OpenClipboard(owner))
241 result = SetClipboardData(CF_UNICODETEXT, wcsdup(reinterpret_cast<const wchar_t *> (data->
text().
utf16()))) != NULL;
246 return result ? S_OK : !S_OK;
QWidget * clipBoardViewer
QString text() const
Returns a plain text (MIME type text/plain) representation of the data.
static const char * data(const QByteArray &arr)
The QMimeData class provides a container for data that records information about its MIME type...
const QMimeData * mimeData() const
bool hasText() const
Returns true if the object can return plain text (MIME type text/plain); otherwise returns false...
static QClipboardData * ptrClipboardData
const ushort * utf16() const
Returns the QString as a '\0\'-terminated array of unsigned shorts.
◆ ptrClipboardData
◆ ptrIsHungAppWindow