VirtualBox

Changeset 11511 in vbox for trunk/src


Ignore:
Timestamp:
Aug 20, 2008 11:58:28 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
35045
Message:

FE/Qt4: isPathLineChosen() => isPathSelected() + docs.

Location:
trunk/src/VBox/Frontends/VirtualBox4
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/include/VBoxFilePathSelectorWidget.h

    r11497 r11511  
    5454
    5555    bool isModified() const;
    56     bool isPathLineChosen() const;
     56    bool isPathSelected() const;
    5757
    5858    QString path() const;
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxFilePathSelectorWidget.cpp

    r11497 r11511  
    115115}
    116116
    117 bool VBoxFilePathSelectorWidget::isPathLineChosen() const
     117/**
     118 * Returns @c true if the selected (active) combobox item is a path item.
     119 *
     120 * May be used in @c activated() signal handlers to distinguish between
     121 * non-path items like "Other..." or "Reset" that get temporarily activated
     122 * when performing the corresponding actiojn and the item that contains a
     123 * real selected file/folder path.
     124 */
     125bool VBoxFilePathSelectorWidget::isPathSelected() const
    118126{
    119127    return (currentIndex() == PathId);
     
    145153void VBoxFilePathSelectorWidget::focusInEvent (QFocusEvent *aEvent)
    146154{
    147     if (isPathLineChosen())
     155    if (isPathSelected())
    148156    {
    149157        mIsEditableMode = true;
     
    155163void VBoxFilePathSelectorWidget::focusOutEvent (QFocusEvent *aEvent)
    156164{
    157     if (isPathLineChosen())
     165    if (isPathSelected())
    158166    {
    159167        mIsEditableMode = false;
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxVMSettingsSFDetails.cpp

    r11497 r11511  
    143143void VBoxVMSettingsSFDetails::onSelectPath()
    144144{
    145     if (!mPsPath->isPathLineChosen())
     145    if (!mPsPath->isPathSelected())
    146146        return;
    147147
Note: See TracChangeset for help on using the changeset viewer.

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