static inline int themeDialogType(const QDialog *dialog)
{
+#ifndef QT_NO_FILEDIALOG
if (qobject_cast<const QFileDialog *>(dialog))
return QPlatformTheme::FileDialog;
+#endif
if (qobject_cast<const QColorDialog *>(dialog))
return QPlatformTheme::ColorDialog;
+#ifndef QT_NO_FONTDIALOG
if (qobject_cast<const QFontDialog *>(dialog))
return QPlatformTheme::FontDialog;
+#endif
return -1;
}
handleWheelEvent(static_cast<QWheelEvent *>(event));
return true;
+#ifndef QT_NO_DRAGANDDROP
case QEvent::DragEnter:
case QEvent::DragLeave:
case QEvent::DragMove:
case QEvent::Drop:
handleDragEvent(event);
break;
+#endif
case QEvent::Expose:
handleExposeEvent(static_cast<QExposeEvent *>(event));
QGuiApplication::sendSpontaneousEvent(widget, &translated);
}
+#ifndef QT_NO_DRAGANDDROP
+
void QWidgetWindow::handleDragEvent(QEvent *event)
{
switch (event->type()) {
}
}
+#endif // QT_NO_DRAGANDDROP
+
void QWidgetWindow::handleExposeEvent(QExposeEvent *event)
{
if (isExposed()) {
void handleMoveEvent(QMoveEvent *);
void handleResizeEvent(QResizeEvent *);
void handleWheelEvent(QWheelEvent *);
+#ifndef QT_NO_DRAGANDDROP
void handleDragEvent(QEvent *);
+#endif
void handleExposeEvent(QExposeEvent *);
void handleWindowStateChangedEvent(QWindowStateChangeEvent *event);
bool nativeEvent(const QByteArray &eventType, void *message, long *result);
QWidget *m_widget;
QWeakPointer<QWidget> m_implicit_mouse_grabber;
+#ifndef QT_NO_DRAGANDDROP
QWeakPointer<QWidget> m_dragTarget;
+#endif
};
QT_END_NAMESPACE