Index: /trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationModel.cpp
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationModel.cpp	(revision 65333)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationModel.cpp	(revision 65334)
@@ -49,7 +49,6 @@
 UIInformationModel::~UIInformationModel()
 {
-    /* Destroy all data-items: */
-    qDeleteAll(m_list);
-    m_list.clear();
+    /* Cleanup: */
+    cleanup();
 }
 
@@ -68,31 +67,4 @@
     /* Return the data for the corresponding role: */
     return pItem->data(index, role);
-}
-
-void UIInformationModel::prepare()
-{
-    /* Prepare role-names for model: */
-    QHash<int, QByteArray> roleNames;
-    roleNames[Qt::DisplayRole] = "";
-    roleNames[Qt::DecorationRole] = "";
-    roleNames[Qt::UserRole + 1] = "";
-    roleNames[Qt::UserRole + 2] = "";
-    # if QT_VERSION < 0x050000
-    setRoleNames(roleNames);
-    # endif /* QT_VERSION < 0x050000 */
-
-    /* Register meta-type: */
-    qRegisterMetaType<InformationElementType>();
-}
-
-QHash<int, QByteArray> UIInformationModel::roleNames() const
-{
-    /* Add supported roles and return: */
-    QHash<int, QByteArray> roleNames;
-    roleNames[Qt::DisplayRole] = "";
-    roleNames[Qt::DecorationRole] = "";
-    roleNames[Qt::UserRole + 1] = "";
-    roleNames[Qt::UserRole + 2] = "";
-    return roleNames;
 }
 
@@ -120,2 +92,36 @@
 }
 
+void UIInformationModel::prepare()
+{
+    /* Prepare role-names for model: */
+    QHash<int, QByteArray> roleNames;
+    roleNames[Qt::DisplayRole] = "";
+    roleNames[Qt::DecorationRole] = "";
+    roleNames[Qt::UserRole + 1] = "";
+    roleNames[Qt::UserRole + 2] = "";
+    # if QT_VERSION < 0x050000
+    setRoleNames(roleNames);
+    # endif /* QT_VERSION < 0x050000 */
+
+    /* Register meta-type: */
+    qRegisterMetaType<InformationElementType>();
+}
+
+void UIInformationModel::cleanup()
+{
+    /* Destroy all data-items: */
+    qDeleteAll(m_list);
+    m_list.clear();
+}
+
+QHash<int, QByteArray> UIInformationModel::roleNames() const
+{
+    /* Add supported roles and return: */
+    QHash<int, QByteArray> roleNames;
+    roleNames[Qt::DisplayRole] = "";
+    roleNames[Qt::DecorationRole] = "";
+    roleNames[Qt::UserRole + 1] = "";
+    roleNames[Qt::UserRole + 2] = "";
+    return roleNames;
+}
+
Index: /trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationModel.h
===================================================================
--- /trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationModel.h	(revision 65333)
+++ /trunk/src/VBox/Frontends/VirtualBox/src/runtime/information/UIInformationModel.h	(revision 65334)
@@ -82,4 +82,6 @@
     /** Prepares all. */
     void prepare();
+    /** Cleanups all. */
+    void cleanup();
 
     /** Returns the list of role-names supported by model. */
