Changeset 25012 in vbox
- Timestamp:
- Nov 26, 2009 3:06:37 PM (15 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/CIShared.h
r8170 r25012 99 99 100 100 private: 101 CIShared( Data * data ) : d( data ) {}101 CIShared( Data *aData ) : d( aData ) {} 102 102 Data *d; 103 103 -
trunk/src/VBox/Frontends/VirtualBox/include/VBoxGlobalSettings.h
r21711 r25012 85 85 86 86 bool autoCapture() const { return data()->autoCapture; } 87 void setAutoCapture (bool autoCapture) { 88 mData()->autoCapture = autoCapture; 87 void setAutoCapture (bool aAutoCapture) 88 { 89 mData()->autoCapture = aAutoCapture; 89 90 resetError(); 90 91 } -
trunk/src/VBox/Frontends/VirtualBox/include/VBoxUtils.h
r17126 r25012 53 53 if (aEvent->type() == QEvent::KeyPress || aEvent->type() == QEvent::KeyRelease) 54 54 { 55 QKeyEvent * event = static_cast<QKeyEvent *> (aEvent);56 if ( event->modifiers() & Qt::AltModifier)55 QKeyEvent *pEvent = static_cast<QKeyEvent *> (aEvent); 56 if (pEvent->modifiers() & Qt::AltModifier) 57 57 return true; 58 58 } -
trunk/src/VBox/Frontends/VirtualBox/src/QILabelSeparator.cpp
r23223 r25012 75 75 separator->setSizePolicy (QSizePolicy::MinimumExpanding, QSizePolicy::Preferred); 76 76 77 QHBoxLayout * layout = new QHBoxLayout (this);78 VBoxGlobal::setLayoutMargin ( layout, 0);79 layout->addWidget (mLabel);80 layout->addWidget (separator, Qt::AlignBottom);77 QHBoxLayout *pLayout = new QHBoxLayout (this); 78 VBoxGlobal::setLayoutMargin (pLayout, 0); 79 pLayout->addWidget (mLabel); 80 pLayout->addWidget (separator, Qt::AlignBottom); 81 81 } 82 82 -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxFilePathSelectorWidget.cpp
r24766 r25012 390 390 initDir = mHomeDir; 391 391 392 QString path;392 QString selPath; 393 393 switch (mMode) 394 394 { 395 395 case Mode_File_Open: 396 path = QIFileDialog::getOpenFileName (initDir, mFileFilters, parentWidget(), mFileDialogTitle); break;396 selPath = QIFileDialog::getOpenFileName (initDir, mFileFilters, parentWidget(), mFileDialogTitle); break; 397 397 case Mode_File_Save: 398 398 { 399 path = QIFileDialog::getSaveFileName (initDir, mFileFilters, parentWidget(), mFileDialogTitle);400 if (! path.isEmpty() && QFileInfo (path).suffix().isEmpty())401 path = QString ("%1.%2").arg (path).arg (mDefaultSaveExt);399 selPath = QIFileDialog::getSaveFileName (initDir, mFileFilters, parentWidget(), mFileDialogTitle); 400 if (!selPath.isEmpty() && QFileInfo (selPath).suffix().isEmpty()) 401 selPath = QString ("%1.%2").arg (selPath).arg (mDefaultSaveExt); 402 402 break; 403 403 } 404 404 case Mode_Folder: 405 path = QIFileDialog::getExistingDirectory (initDir, parentWidget(), mFileDialogTitle); break;406 } 407 408 if ( path.isNull())405 selPath = QIFileDialog::getExistingDirectory (initDir, parentWidget(), mFileDialogTitle); break; 406 } 407 408 if (selPath.isNull()) 409 409 return; 410 410 411 path.remove (QRegExp ("[\\\\/]$"));412 changePath ( path);411 selPath.remove (QRegExp ("[\\\\/]$")); 412 changePath (selPath); 413 413 } 414 414
Note:
See TracChangeset
for help on using the changeset viewer.