Index: /trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPopupPaneDetails.cpp
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPopupPaneDetails.cpp	(revision 71514)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPopupPaneDetails.cpp	(revision 71515)
@@ -5,5 +5,5 @@
 
 /*
- * Copyright (C) 2013-2017 Oracle Corporation
+ * Copyright (C) 2013-2018 Oracle Corporation
  *
  * This file is part of VirtualBox Open Source Edition (OSE), as
@@ -25,6 +25,6 @@
 
 /* GUI includes: */
+# include "UIAnimationFramework.h"
 # include "UIPopupPaneDetails.h"
-# include "UIAnimationFramework.h"
 
 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */
@@ -106,12 +106,4 @@
 }
 
-void UIPopupPaneDetails::updateVisibility()
-{
-    if (m_fFocused && !m_strText.isEmpty())
-        show();
-    else
-        hide();
-}
-
 void UIPopupPaneDetails::sltHandleProposalForWidth(int iWidth)
 {
@@ -189,4 +181,5 @@
     /* Create text-editor: */
     m_pTextEdit = new QTextEdit(this);
+    if (m_pTextEdit)
     {
         /* Configure text-editor: */
@@ -245,4 +238,12 @@
 }
 
+void UIPopupPaneDetails::updateVisibility()
+{
+    if (m_fFocused && !m_strText.isEmpty())
+        show();
+    else
+        hide();
+}
+
 /* static */
 QFont UIPopupPaneDetails::tuneFont(QFont font)
@@ -255,2 +256,3 @@
     return font;
 }
+
Index: /trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPopupPaneDetails.h
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPopupPaneDetails.h	(revision 71514)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPopupPaneDetails.h	(revision 71515)
@@ -5,5 +5,5 @@
 
 /*
- * Copyright (C) 2013-2017 Oracle Corporation
+ * Copyright (C) 2013-2018 Oracle Corporation
  *
  * This file is part of VirtualBox Open Source Edition (OSE), as
@@ -26,5 +26,5 @@
 class UIAnimation;
 
-/* Popup-pane text-pane prototype class: */
+/** QWidget extension providing GUI with popup-pane details-pane prototype class. */
 class UIPopupPaneDetails : public QWidget
 {
@@ -36,70 +36,96 @@
 signals:
 
-    /* Notifiers: Parent propagation stuff: */
+    /** Notifies about focus enter. */
     void sigFocusEnter();
+    /** Notifies about focus enter. */
     void sigFocusLeave();
 
-    /* Notifier: Layout stuff: */
+    /** Notifies about size-hint change. */
     void sigSizeHintChanged();
 
 public:
 
-    /* Constructor: */
+    /** Constructs details-pane passing @a pParent to the base-class.
+      * @param  strText   Brings the details text.
+      * @param  fFcoused  Brings whether the pane is focused. */
     UIPopupPaneDetails(QWidget *pParent, const QString &strText, bool fFocused);
 
-    /* API: Text stuff: */
+    /** Defines the details @a strText. */
     void setText(const QString &strText);
 
-    /* API: Layout stuff: */
+    /** Returns the details minimum size-hint. */
     QSize minimumSizeHint() const;
+    /** Defines the details @a minimumSizeHint. */
     void setMinimumSizeHint(const QSize &minimumSizeHint);
+    /** Lays the content out. */
     void layoutContent();
 
-    /* Property: Focus stuff: */
+    /** Returns the collapsed size-hint. */
     QSize collapsedSizeHint() const { return m_collapsedSizeHint; }
+    /** Returns the expanded size-hint. */
     QSize expandedSizeHint() const { return m_expandedSizeHint; }
 
 public slots:
 
-    /* Handlers: Layout stuff: */
+    /** Handles proposal for @a iWidth. */
     void sltHandleProposalForWidth(int iWidth);
+    /** Handles proposal for @a iHeight. */
     void sltHandleProposalForHeight(int iHeight);
 
-    /* Handlers: Focus stuff: */
+    /** Handles focus enter. */
     void sltFocusEnter();
+    /** Handles focus leave. */
     void sltFocusLeave();
 
 private:
 
-    /* Helpers: Prepare stuff: */
+    /** Prepares all. */
     void prepare();
+    /** Prepares content. */
     void prepareContent();
+    /** Prepares animations. */
     void prepareAnimation();
 
-    /* Helper: Layout stuff: */
+    /** Updates size-hint. */
     void updateSizeHint();
+    /** Updates visibility. */
     void updateVisibility();
 
-    /* Static helper: Font stuff: */
+    /** Adjusts @a font. */
     static QFont tuneFont(QFont font);
 
-    /* Variables: Layout stuff: */
+    /** Holds the layout margin. */
     const int m_iLayoutMargin;
+    /** Holds the layout spacing. */
     const int m_iLayoutSpacing;
+
+    /** Holds the text-editor size-hint. */
     QSize m_textEditSizeHint;
+    /** Holds the collapsed size-hint. */
     QSize m_collapsedSizeHint;
+    /** Holds the expanded size-hint. */
     QSize m_expandedSizeHint;
+    /** Holds the minimum size-hint. */
     QSize m_minimumSizeHint;
 
-    /* Variables: Widget stuff: */
+    /** Holds the text. */
     QString m_strText;
+
+    /** Holds the text-editor instance. */
     QTextEdit *m_pTextEdit;
+
+    /** Holds the desired textr-editor width. */
     int m_iDesiredTextEditWidth;
+    /** Holds the maximum pane height. */
     int m_iMaximumPaneHeight;
+    /** Holds the desired textr-editor height. */
     int m_iMaximumTextEditHeight;
+    /** Holds the text content margin. */
     int m_iTextContentMargin;
 
-    /* Variables: Focus stuff: */
+    /** Holds whether details-pane is focused. */
     bool m_fFocused;
+
+    /** Holds the animation instance. */
     UIAnimation *m_pAnimation;
 };
Index: /trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPopupPaneMessage.cpp
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPopupPaneMessage.cpp	(revision 71514)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPopupPaneMessage.cpp	(revision 71515)
@@ -5,5 +5,5 @@
 
 /*
- * Copyright (C) 2013-2017 Oracle Corporation
+ * Copyright (C) 2013-2018 Oracle Corporation
  *
  * This file is part of VirtualBox Open Source Edition (OSE), as
@@ -24,6 +24,6 @@
 
 /* GUI includes: */
+# include "UIAnimationFramework.h"
 # include "UIPopupPaneMessage.h"
-# include "UIAnimationFramework.h"
 
 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */
@@ -148,4 +148,5 @@
     /* Create label: */
     m_pLabel = new QLabel(this);
+    if (m_pLabel)
     {
         /* Configure label: */
Index: /trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPopupPaneMessage.h
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPopupPaneMessage.h	(revision 71514)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPopupPaneMessage.h	(revision 71515)
@@ -5,5 +5,5 @@
 
 /*
- * Copyright (C) 2013-2017 Oracle Corporation
+ * Copyright (C) 2013-2018 Oracle Corporation
  *
  * This file is part of VirtualBox Open Source Edition (OSE), as
@@ -26,5 +26,5 @@
 class UIAnimation;
 
-/* Popup-pane text-pane prototype class: */
+/** QWidget extension providing GUI with popup-pane message-pane prototype class. */
 class UIPopupPaneMessage : public QWidget
 {
@@ -36,65 +36,86 @@
 signals:
 
-    /* Notifiers: Parent propagation stuff: */
+    /** Notifies about focus enter. */
     void sigFocusEnter();
+    /** Notifies about focus enter. */
     void sigFocusLeave();
 
-    /* Notifier: Layout stuff: */
+    /** Notifies about size-hint change. */
     void sigSizeHintChanged();
 
 public:
 
-    /* Constructor: */
+    /** Constructs message-pane passing @a pParent to the base-class.
+      * @param  strText   Brings the message text.
+      * @param  fFcoused  Brings whether the pane is focused. */
     UIPopupPaneMessage(QWidget *pParent, const QString &strText, bool fFocused);
 
-    /* API: Text stuff: */
+    /** Defines the message @a strText. */
     void setText(const QString &strText);
 
-    /* API: Layout stuff: */
+    /** Returns the message minimum size-hint. */
     QSize minimumSizeHint() const;
+    /** Defines the message @a minimumSizeHint. */
     void setMinimumSizeHint(const QSize &minimumSizeHint);
+    /** Lays the content out. */
     void layoutContent();
 
-    /* Property: Focus stuff: */
+    /** Returns the collapsed size-hint. */
     QSize collapsedSizeHint() const { return m_collapsedSizeHint; }
+    /** Returns the expanded size-hint. */
     QSize expandedSizeHint() const { return m_expandedSizeHint; }
 
 private slots:
 
-    /* Handler: Layout stuff: */
+    /** Handles proposal for @a iWidth. */
     void sltHandleProposalForWidth(int iWidth);
 
-    /* Handlers: Focus stuff: */
+    /** Handles focus enter. */
     void sltFocusEnter();
+    /** Handles focus leave. */
     void sltFocusLeave();
 
 private:
 
-    /* Helpers: Prepare stuff: */
+    /** Prepares all. */
     void prepare();
+    /** Prepares content. */
     void prepareContent();
+    /** Prepares animations. */
     void prepareAnimation();
 
-    /* Helper: Layout stuff: */
+    /** Updates size-hint. */
     void updateSizeHint();
 
-    /* Static helper: Font stuff: */
+    /** Adjusts @a font. */
     static QFont tuneFont(QFont font);
 
-    /* Variables: Layout stuff: */
+    /** Holds the layout margin. */
     const int m_iLayoutMargin;
+    /** Holds the layout spacing. */
     const int m_iLayoutSpacing;
+
+    /** Holds the label size-hint. */
     QSize m_labelSizeHint;
+    /** Holds the collapsed size-hint. */
     QSize m_collapsedSizeHint;
+    /** Holds the expanded size-hint. */
     QSize m_expandedSizeHint;
+    /** Holds the minimum size-hint. */
     QSize m_minimumSizeHint;
 
-    /* Variables: Widget stuff: */
+    /** Holds the text. */
     QString m_strText;
+
+    /** Holds the label instance. */
     QLabel *m_pLabel;
+
+    /** Holds the desired label width. */
     int m_iDesiredLabelWidth;
 
-    /* Variables: Focus stuff: */
+    /** Holds whether message-pane is focused. */
     bool m_fFocused;
+
+    /** Holds the animation instance. */
     UIAnimation *m_pAnimation;
 };
