VirtualBox

Changeset 1255 in vbox


Ignore:
Timestamp:
Mar 6, 2007 10:59:08 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
19200
Message:

FE/Qt: Added icons for the description; fixed: the description tab was not updated after a change.

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/VBoxUI.pro

    r1062 r1255  
    208208        images/refresh_22px.png \
    209209        images/refresh_disabled_22px.png \
     210        images/description_16px.png \
     211        images/description_disabled_16px.png \
     212        images/edit_description_16px.png \
     213        images/edit_description_disabled_16px.png \
    210214        images/global_settings_16px.png \
    211215        images/global_settings_diasbled_16px.png \
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxSelectorWnd.cpp

    r1242 r1255  
    256256    mBtnEdit->setSizePolicy (QSizePolicy::Preferred, QSizePolicy::Fixed);
    257257    mBtnEdit->setFocusPolicy (QWidget::StrongFocus);
    258     mBtnEdit->setIconSet (VBoxGlobal::iconSet ("edit_shared_folder_16px.png",
    259                           "edit_shared_folder_disabled_16px.png"));
     258    mBtnEdit->setIconSet (VBoxGlobal::iconSet ("edit_description_16px.png",
     259                                               "edit_description_disabled_16px.png"));
    260260    mBtnEdit->setTextPosition (QToolButton::BesideIcon);
    261261    mBtnEdit->setUsesTextLabel (true);
     
    279279    Assert (!aMachine.isNull());
    280280
    281     QUuid id = aMachine.GetId();
    282     if (id == mMachineId)
    283         return;
    284 
    285     mMachineId = id;
     281    mMachineId = aMachine.GetId();
    286282
    287283    QString text = aMachine.GetDescription();
     
    442438    vmDescriptionPage = new VBoxVMDescriptionPage (this, "vmDescriptionPage");
    443439    vmTabWidget->addTab (vmDescriptionPage,
    444                          VBoxGlobal::iconSet ("edit_shared_folder_16px.png"),
     440                         VBoxGlobal::iconSet ("description_16px.png"),
    445441                         QString::null);
    446442
     
    962958
    963959    vmTabWidget->changeTab (vmDetailsView, tr ("&Details"));
    964     vmTabWidget->changeTab (vmSnapshotsWgt, tr ("&Snapshots"));
    965     vmTabWidget->changeTab (vmDescriptionPage, tr ("D&escription"));
     960    /* note: Snapshots and Details tabs are changed dynamically by
     961     * vmListBoxCurrentChanged() */
    966962
    967963    /* ensure the details and screenshot view are updated */
     
    10831079            /* update the description tab name */
    10841080            QString name = m.GetDescription().isEmpty() ?
    1085                 tr ("Des&cription") : tr ("Des&cription (*)");
     1081                tr ("D&escription") : tr ("D&escription *");
    10861082            vmTabWidget->changeTab (vmDescriptionPage, name);
    10871083            /* refresh description widget */
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