Changeset 67966 in vbox
- Timestamp:
- Jul 14, 2017 1:01:57 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 116968
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/medium
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMedium.cpp
r67946 r67966 90 90 m_strName = other.name(); 91 91 m_strLocation = other.location(); 92 m_strDescription = other.description(); 92 93 93 94 m_uSize = other.sizeInBytes(); … … 155 156 //m_strKey = nullID(); 156 157 157 /* Reset name/location/ size parameters: */158 /* Reset name/location/description/size parameters: */ 158 159 m_strName = VBoxGlobal::tr("Empty", "medium"); 159 160 m_strLocation = m_strSize = m_strLogicalSize = QString("--"); 161 m_strDescription = QString(); 160 162 m_uSize = m_uLogicalSize = 0; 161 163 … … 209 211 else 210 212 m_strName = VBoxGlobal::tr("Host Drive %1 (%2)", "medium").arg(m_medium.GetDescription(), m_medium.GetName()); 211 /* Refresh medium location : */213 /* Refresh medium location/description: */ 212 214 if (!m_fHostDrive) 215 { 213 216 m_strLocation = QDir::toNativeSeparators(m_medium.GetLocation()); 217 m_strDescription = m_medium.GetDescription(); 218 } 214 219 215 220 /* Refresh medium size and logical size: */ -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMedium.h
r67946 r67966 177 177 * @note In "don't show diffs" mode, this method returns the location of root in the given hard drive chain. */ 178 178 QString location(bool fNoDiffs = false) const { return fNoDiffs ? root().m_strLocation : m_strLocation; } 179 /** Returns the medium description. 180 * @param fNoDiffs @c true to enable user-friendly "don't show diffs" mode. 181 * @note In "don't show diffs" mode, this method returns the description of root in the given hard drive chain. */ 182 QString description(bool fNoDiffs = false) const { return fNoDiffs ? root().m_strDescription : m_strDescription; } 179 183 180 184 /** Returns the medium size in bytes. … … 354 358 /** Holds the medium location. */ 355 359 QString m_strLocation; 360 /** Holds the medium description. */ 361 QString m_strDescription; 356 362 357 363 /** Holds the medium size in bytes. */
Note:
See TracChangeset
for help on using the changeset viewer.