VirtualBox

Changeset 44010 in vbox


Ignore:
Timestamp:
Dec 3, 2012 1:55:36 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
82422
Message:

FE/Qt: VM group UI: Details-view: Group-item cleanup (part 2).

Location:
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsGroup.cpp

    r44009 r44010  
    3131{
    3232    /* Prepare connections: */
    33     connect(this, SIGNAL(sigStartFirstStep(QString)), this, SLOT(sltFirstStep(QString)), Qt::QueuedConnection);
     33    prepareConnections();
    3434}
    3535
    3636UIGDetailsGroup::~UIGDetailsGroup()
    3737{
    38     /* Clear items: */
     38    /* Cleanup items: */
    3939    clearItems();
    4040}
     
    5252void UIGDetailsGroup::stopPopulatingItems()
    5353{
     54    /* Generate new group-id: */
    5455    m_strGroupId = QUuid::createUuid().toString();
    5556}
     
    6162    m_pStep = 0;
    6263
    63     /* Was that a requested group? */
     64    /* Is step id valid? */
    6465    if (strGroupId != m_strGroupId)
    6566        return;
     
    7677    m_pStep = 0;
    7778
    78     /* Was that a requested group? */
     79    /* Is step id valid? */
    7980    if (strGroupId != m_strGroupId)
    8081        return;
     
    147148        default: AssertMsgFailed(("Invalid item type!")); break;
    148149    }
     150}
     151
     152void UIGDetailsGroup::prepareConnections()
     153{
     154    connect(this, SIGNAL(sigStartFirstStep(QString)), this, SLOT(sltFirstStep(QString)), Qt::QueuedConnection);
    149155}
    150156
     
    193199    m_pStep = 0;
    194200
     201    /* Generate new group-id: */
     202    m_strGroupId = QUuid::createUuid().toString();
     203
    195204    /* Prepare first set: */
    196     m_strGroupId = QUuid::createUuid().toString();
    197205    emit sigStartFirstStep(m_strGroupId);
    198206}
     
    263271void UIGDetailsGroup::updateLayout()
    264272{
    265     /* Update size-hints for all the items: */
     273    /* Update size-hints for all the children: */
    266274    foreach (UIGDetailsItem *pItem, items())
    267275        pItem->updateSizeHint();
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGDetailsGroup.h

    r44009 r44010  
    3434signals:
    3535
    36     /* Notifiers: Prepare stuff: */
     36    /* Notifier: Prepare stuff: */
    3737    void sigStartFirstStep(QString strGroupId);
    3838
     
    7979
    8080    /* Helpers: Prepare stuff: */
     81    void prepareConnections();
    8182    void loadSettings();
    8283    void prepareSets(const QList<UIVMItem*> &items);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette