|
Joined: Mar 2001
Posts: 16,923 Likes: 57
Very Senior Member
|
Very Senior Member
Joined: Mar 2001
Posts: 16,923 Likes: 57 |
Volumes on OS X are all inside /Volumes/. The Mac GUI obfuscates that fact a little; when you back out all the way you're actually seeing /Volumes/.
|
|
|
|
Joined: Jan 2007
Posts: 213
Senior Member
|
Senior Member
Joined: Jan 2007
Posts: 213 |
I agree, the problem is that QMC2 does not allow "Volumes" to be displayed in the file chooser. I think it would be nice to have there (when invoked) a standard floating OSX file requester where at least the not hidden volumes are clearly listed.
Last edited by MacBox360; 06/28/15 08:54 PM.
|
|
|
|
Joined: Mar 2001
Posts: 16,923 Likes: 57
Very Senior Member
|
Very Senior Member
Joined: Mar 2001
Posts: 16,923 Likes: 57 |
Ahh, ok. Yeah, that's a problem 
|
|
|
|
Joined: May 2008
Posts: 4,930 Likes: 24
Very Senior Member
|
Very Senior Member
Joined: May 2008
Posts: 4,930 Likes: 24 |
You mean that even if a volume is mounted below /Volumes it is not shown? I wouldn't think so, but I may be wrong... I'm not on Mac OS X so I can't test (or even fix it), unfortunately.
A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]
|
|
|
|
Joined: May 2008
Posts: 4,930 Likes: 24
Very Senior Member
|
Very Senior Member
Joined: May 2008
Posts: 4,930 Likes: 24 |
According to this Qt bug it should be possibe to access "volumes" when hidden objects are included in the model's filter. So if someone on Mac OS X could please test if this patch would fix it that would be greatly appreciated:
rene@thunder:~/src/qmc2> svn diff
Index: deviceconfigurator.cpp
===================================================================
--- deviceconfigurator.cpp (revision 6766)
+++ deviceconfigurator.cpp (working copy)
@@ -2151,7 +2151,7 @@
treeViewDirChooser->setUpdatesEnabled(false);
dirModel = new DirectoryModel(this);
- dirModel->setFilter(QDir::Dirs | QDir::NoDotAndDotDot | QDir::AllDirs | QDir::Drives | QDir::CaseSensitive);
+ dirModel->setFilter(QDir::Dirs | QDir::NoDotAndDotDot | QDir::AllDirs | QDir::Drives | QDir::CaseSensitive | QDir::Hidden);
#if defined(QMC2_OS_WIN)
dirModel->setRootPath(dirModel->myComputer().toString());
#else
Index: filesystemmodel.h
===================================================================
--- filesystemmodel.h (revision 6766)
+++ filesystemmodel.h (working copy)
@@ -149,7 +149,10 @@
}
}
#else
- QDirIterator dirIterator(dirPath, nameFilters, includeFolders ? QDir::Files | QDir::Dirs | QDir::NoDot : QDir::Files);
+ QDir::Filters filters = QDir::Files | QDir::Hidden;
+ if ( includeFolders )
+ filters = QDir::Files | QDir::Dirs | QDir::NoDot | QDir::Hidden;
+ QDirIterator dirIterator(dirPath, nameFilters, filters);
while ( !stopScanning && !quitFlag && dirIterator.hasNext() ) {
dirIterator.next();
dirEntries << dirIterator.fileName();
EDIT: That's in SVN r6777 now since it may be useful to include hidden files and folders on Linux/UNIX as well (for other reasons).
Last edited by qmc2; 06/29/15 06:35 AM.
A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]
|
|
|
|
Joined: Jan 2007
Posts: 213
Senior Member
|
Senior Member
Joined: Jan 2007
Posts: 213 |
Hello, I have attached a snapshot to better show what I mean: with the situation shown in the picture I can't go anywhere than the System volume. Snapshot
Last edited by MacBox360; 06/29/15 06:56 AM.
|
|
|
|
Joined: May 2008
Posts: 4,930 Likes: 24
Very Senior Member
|
Very Senior Member
Joined: May 2008
Posts: 4,930 Likes: 24 |
Yeah, thanks for the screen shot, but "/Volumes" is part of "/" (the VFS root), you just don't see it or its contained volumes (= sub-folders of /Volumes).
A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]
|
|
|
|
Joined: Feb 2004
Posts: 2,383 Likes: 98
Very Senior Member
|
Very Senior Member
Joined: Feb 2004
Posts: 2,383 Likes: 98 |
And people wonder why OSX users hate on Qt. Little things like this never work right.
|
|
|
|
Joined: Mar 2008
Posts: 1,049
Very Senior Member
|
OP
Very Senior Member
Joined: Mar 2008
Posts: 1,049 |
Thanks for the videosnaps support! As soon I have the opportunity, I want test this new feature (a lot) 
"A user interface is like a joke. If you have to explain it, it's not that good."
|
|
|
|
Joined: Mar 2008
Posts: 1,049
Very Senior Member
|
OP
Very Senior Member
Joined: Mar 2008
Posts: 1,049 |
It's possible to build QMC2 using MAME new buildtools? (I used to build QMC2 using MinGW with old MAME tools, but that's not available anymore in official website, as it's not more supported) http://mamedev.org/tools/
"A user interface is like a joke. If you have to explain it, it's not that good."
|
|
|
0 members (),
24
guests, and
3
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
Forums9
Topics9,101
Posts119,255
Members5,019
|
Most Online890 Jan 17th, 2020
|
|
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!
|
|
|
|