src/gui/kernel/qclipboard_win.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
    49 #include "qwidget.h"
    49 #include "qwidget.h"
    50 #include "qevent.h"
    50 #include "qevent.h"
    51 #include "qmime.h"
    51 #include "qmime.h"
    52 #include "qt_windows.h"
    52 #include "qt_windows.h"
    53 #include "qdnd_p.h"
    53 #include "qdnd_p.h"
       
    54 #include <private/qwidget_p.h>
    54 
    55 
    55 QT_BEGIN_NAMESPACE
    56 QT_BEGIN_NAMESPACE
    56 
    57 
    57 #if defined(Q_OS_WINCE)
    58 #if defined(Q_OS_WINCE)
    58 QT_BEGIN_INCLUDE_NAMESPACE
    59 QT_BEGIN_INCLUDE_NAMESPACE
   138         , nextClipboardViewer(0)
   139         , nextClipboardViewer(0)
   139     {
   140     {
   140         clipBoardViewer = new QWidget();
   141         clipBoardViewer = new QWidget();
   141         clipBoardViewer->createWinId();
   142         clipBoardViewer->createWinId();
   142         clipBoardViewer->setObjectName(QLatin1String("internal clipboard owner"));
   143         clipBoardViewer->setObjectName(QLatin1String("internal clipboard owner"));
       
   144         // We dont need this internal widget to appear in QApplication::topLevelWidgets()
       
   145         if (QWidgetPrivate::allWidgets)
       
   146             QWidgetPrivate::allWidgets->remove(clipBoardViewer);
   143     }
   147     }
   144 
   148 
   145     ~QClipboardData()
   149     ~QClipboardData()
   146     {
   150     {
   147         Q_ASSERT(clipBoardViewer->testAttribute(Qt::WA_WState_Created));
   151         Q_ASSERT(clipBoardViewer->testAttribute(Qt::WA_WState_Created));