Changeset 6656 in vbox
- Timestamp:
- Jan 31, 2008 1:44:16 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxSharedFoldersSettings.ui.h
r6537 r6656 181 181 const SFoldersNameList &aUsedNames) 182 182 : QDialog (aParent, "VBoxAddSFDialog", true /* modal */) 183 , mLePath (0), mLeName (0), mCbPermanent (0), mCb Writable(0)183 , mLePath (0), mLeName (0), mCbPermanent (0), mCbReadonly (0) 184 184 , mUsedNames (aUsedNames) 185 185 { … … 225 225 QHBoxLayout *cbLayout = new QHBoxLayout (0, "cbLayout"); 226 226 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); 230 234 if (aEnableSelector) 231 235 { … … 261 265 return mCbPermanent ? mCbPermanent->isChecked() : true; 262 266 } 263 bool getWritable() { return mCbWritable->isChecked(); }267 bool getWritable() { return !mCbReadonly->isChecked(); } 264 268 265 269 void setPath (const QString &aPath) { mLePath->setText (aPath); } … … 273 277 } 274 278 } 275 void setWritable (bool aWritable) { mCb Writable->setChecked (aWritable); }279 void setWritable (bool aWritable) { mCbReadonly->setChecked (!aWritable); } 276 280 277 281 private slots: … … 338 342 QLineEdit *mLeName; 339 343 QCheckBox *mCbPermanent; 340 QCheckBox *mCb Writable;344 QCheckBox *mCbReadonly; 341 345 SFoldersNameList mUsedNames; 342 346 };
Note:
See TracChangeset
for help on using the changeset viewer.