Changeset 1889 in vbox for trunk/src/VBox/Frontends/VirtualBox/ui/VBoxSharedFoldersSettings.ui.h
- Timestamp:
- Apr 3, 2007 3:42:03 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxSharedFoldersSettings.ui.h
r1863 r1889 188 188 this, SLOT (validate())); 189 189 connect (tbPath, SIGNAL (clicked()), this, SLOT (showFileDialog())); 190 connect (&vboxGlobal(), SIGNAL (existingDirectoryResult (const QString&)),191 this, SLOT (folderSelected (const QString&)));192 190 QWhatsThis::add (mLePath, tr ("Enter existing path for the shared folder here")); 193 191 QWhatsThis::add (mLeName, tr ("Enter name for the shared folder to be created")); … … 233 231 void showFileDialog() 234 232 { 235 vboxGlobal().getExistingDirectory (QDir::convertSeparators ( 236 QDir::rootDirPath()), 237 this, "addSharedFolderDialog", 238 tr ("Select a folder to share")); 239 } 240 241 void folderSelected (const QString &aFolder) 242 { 243 if (aFolder.isNull()) 233 QString folder = vboxGlobal().getExistingDirectory (QDir::rootDirPath(), 234 this, "addSharedFolderDialog", 235 tr ("Select a folder to share")); 236 if (folder.isNull()) 244 237 return; 245 238 246 QString folderName = QDir::convertSeparators ( aFolder);239 QString folderName = QDir::convertSeparators (folder); 247 240 QRegExp commonRule ("[\\\\/]([^\\\\^/]+)[\\\\/]?$"); 248 241 QRegExp rootRule ("(([a-zA-Z])[^\\\\^/])?[\\\\/]$");
Note:
See TracChangeset
for help on using the changeset viewer.