Windows QPA: Extend the debug operator for IShellItem
Output URL string and file system name, too. Task-number: QTBUG-67932 Change-Id: Ic5d1927d70d98f7c081bee06af85b9f3a2a09812 Reviewed-by: Andre de la Rocha <andre.rocha@qt.io>bb10
parent
b20c15f204
commit
59a09022f3
|
|
@ -558,6 +558,10 @@ public:
|
|||
SFGAOF attributes() const { return m_attributes; }
|
||||
QString normalDisplay() const // base name, usually
|
||||
{ return displayName(m_item, SIGDN_NORMALDISPLAY); }
|
||||
QString urlString() const
|
||||
{ return displayName(m_item, SIGDN_URL); }
|
||||
QString fileSysPath() const
|
||||
{ return displayName(m_item, SIGDN_FILESYSPATH); }
|
||||
QString desktopAbsoluteParsing() const
|
||||
{ return displayName(m_item, SIGDN_DESKTOPABSOLUTEPARSING); }
|
||||
QString path() const; // Only set for 'FileSystem' (SFGAO_FILESYSTEM) items
|
||||
|
|
@ -734,7 +738,8 @@ void QWindowsShellItem::format(QDebug &d) const
|
|||
if (canCopy())
|
||||
d << " [copyable]";
|
||||
d << ", normalDisplay=\"" << normalDisplay()
|
||||
<< "\", desktopAbsoluteParsing=\"" << desktopAbsoluteParsing() << '"';
|
||||
<< "\", desktopAbsoluteParsing=\"" << desktopAbsoluteParsing()
|
||||
<< "\", urlString=\"" << urlString() << "\", fileSysPath=\"" << fileSysPath() << '"';
|
||||
const QString pathS = path();
|
||||
if (!pathS.isEmpty())
|
||||
d << ", path=\"" << pathS << '"';
|
||||
|
|
|
|||
Loading…
Reference in New Issue