QT_BEGIN_NAMESPACE
+QLabelPrivate::QLabelPrivate()
+ : valid_hints(false),
+ margin(0),
+ pixmap(nullptr),
+ scaledpixmap(nullptr),
+ cachedimage(nullptr),
+ align(Qt::AlignLeft | Qt::AlignVCenter),
+ indent(-1),
+ scaledcontents(false),
+ textLayoutDirty(false),
+ textDirty(false),
+ isRichText(false),
+ isTextLabel(false),
+ textformat(Qt::AutoText),
+ control(nullptr),
+ textInteractionFlags(Qt::LinksAccessibleByMouse),
+ openExternalLinks(false)
+{
+#ifndef QT_NO_MOVIE
+ movie = nullptr;
+#endif
+
+#ifndef QT_NO_SHORTCUT
+ shortcutId = 0;
+#endif
+
+#ifndef QT_NO_CURSOR
+ validCursor = false;
+ onAnchor = false;
+#endif
+}
+
/*!
\class QLabel
\brief The QLabel widget provides a text or image display.
setText(text);
}
-
-
/*!
Destroys the label.
*/
{
Q_Q(QLabel);
- valid_hints = false;
- margin = 0;
-#ifndef QT_NO_MOVIE
- movie = 0;
-#endif
-#ifndef QT_NO_SHORTCUT
- shortcutId = 0;
-#endif
- pixmap = 0;
- scaledpixmap = 0;
- cachedimage = 0;
- align = Qt::AlignLeft | Qt::AlignVCenter;
- indent = -1;
- scaledcontents = false;
- textLayoutDirty = false;
- textDirty = false;
- textformat = Qt::AutoText;
- control = 0;
- textInteractionFlags = Qt::LinksAccessibleByMouse;
- isRichText = false;
- isTextLabel = false;
-
q->setSizePolicy(QSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred,
QSizePolicy::Label));
-#ifndef QT_NO_CURSOR
- validCursor = false;
- onAnchor = false;
-#endif
-
- openExternalLinks = false;
-
setLayoutItemMargins(QStyle::SE_LabelLayoutItem);
}