VirtualBox

Changeset 6656 in vbox


Ignore:
Timestamp:
Jan 31, 2008 1:44:16 PM (17 years ago)
Author:
vboxsync
Message:

FE/Qt: Shared Folder UI: "Writable" => "Read-only".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/ui/VBoxSharedFoldersSettings.ui.h

    r6537 r6656  
    181181                     const SFoldersNameList &aUsedNames)
    182182        : QDialog (aParent, "VBoxAddSFDialog", true /* modal */)
    183         , mLePath (0), mLeName (0), mCbPermanent (0), mCbWritable (0)
     183        , mLePath (0), mLeName (0), mCbPermanent (0), mCbReadonly (0)
    184184        , mUsedNames (aUsedNames)
    185185    {
     
    225225                QHBoxLayout *cbLayout = new QHBoxLayout (0, "cbLayout");
    226226        inputLayout->addMultiCellLayout (cbLayout, 2, 2, 0, 2);
    227                 mCbWritable = new QCheckBox (tr ("&Writable"), this);
    228         mCbWritable->setChecked (true);
    229         cbLayout->addWidget (mCbWritable);
     227                mCbReadonly = new QCheckBox (tr ("&Read-only"), this);
     228        QWhatsThis::add (mCbReadonly,
     229            tr ("When checked, the guest OS will not be able to write to the "
     230                "specified shared folder."));
     231
     232        mCbReadonly->setChecked (false);
     233        cbLayout->addWidget (mCbReadonly);
    230234        if (aEnableSelector)
    231235        {
     
    261265        return mCbPermanent ? mCbPermanent->isChecked() : true;
    262266    }
    263         bool getWritable() { return mCbWritable->isChecked(); }
     267        bool getWritable() { return !mCbReadonly->isChecked(); }
    264268
    265269    void setPath (const QString &aPath) { mLePath->setText (aPath); }
     
    273277        }
    274278    }
    275         void setWritable (bool aWritable) { mCbWritable->setChecked (aWritable); }
     279        void setWritable (bool aWritable) { mCbReadonly->setChecked (!aWritable); }
    276280
    277281private slots:
     
    338342    QLineEdit *mLeName;
    339343    QCheckBox *mCbPermanent;
    340     QCheckBox *mCbWritable;
     344    QCheckBox *mCbReadonly;
    341345    SFoldersNameList mUsedNames;
    342346};
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