<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body data-blackberry-caret-color="#00a8df" style="background-color: rgb(255, 255, 255); line-height: initial;">
<div id="BB10_response_div" style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);">
Sounds like a good idea to me. The two features (QStandardPaths and search dirs in QFile/QDir) were developed separately (the former after the latter).</div>
<div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);">
<br>
</div>
<div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);">
If we are serious about promotional the search paths then this is probably the way to go :)</div>
<div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);">
<br>
</div>
<div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);">
I wonder what Filesystem folks think about it (especially Andreas, who was around when I added the search dirs with Girish)</div>
<div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);">
<br>
</div>
<div style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);">
Simon </div>
<div id="response_div_spacer" style="width: 100%; font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);">
<br style="display:initial">
</div>
<div id="_signaturePlaceholder" style="font-size: initial; font-family: Calibri, 'Slate Pro', sans-serif; color: rgb(31, 73, 125); text-align: initial; background-color: rgb(255, 255, 255);">
</div>
<table width="100%" style="background-color:white;border-spacing:0px;">
<tbody>
<tr>
<td id="_persistentHeaderContainer" colspan="2" style="font-size: initial; text-align: initial; background-color: rgb(255, 255, 255);">
<div id="_persistentHeader" style="border-style: solid none none; border-top-color: rgb(181, 196, 223); border-top-width: 1pt; padding: 3pt 0in 0in; font-family: Tahoma, 'BB Alpha Sans', 'Slate Pro'; font-size: 10pt;">
<div><b>Fra: </b>Alan Alpert</div>
<div><b>Sendt: </b>02:45 onsdag 31. juli 2013</div>
<div><b>Til: </b>development</div>
<div><b>Emne: </b>[Development] QStandardPath search paths</div>
</div>
</td>
</tr>
</tbody>
</table>
<div id="_persistentHeaderEnd" style="border-style: solid none none; border-top-color: rgb(186, 188, 209); border-top-width: 1pt; font-size: initial; text-align: initial; background-color: rgb(255, 255, 255);">
</div>
<br>
<div id="_originalContent" style="">I was just adding the cross-platform asset directory as a search path<br>
(https://codereview.qt-project.org/#change,61859 , with functionality<br>
as discussed as part of adaptable UI) and the question arose: Why<br>
aren't all (or at least some) standard paths available as search<br>
paths?<br>
<br>
Self documenting examples of what this would look like:<br>
QFile ("tmp:/tmpfile");<br>
QFile ("appData:dataFile");<br>
QQmlApplicationEngine("assets:/main.qml");<br>
<br>
It would be a nice developer convenience, and easy for me to implement<br>
along with asset:. But it's not needed in the same way that asset: is,<br>
which is so that you can write asset: paths outside of #ifdef<br>
Q_OS_ANDROID blocks.<br>
<br>
Does anyone have an opinion on whether I should or should not add all<br>
the other QStandardPaths along with assets?<br>
<br>
--<br>
Alan Alpert<br>
_______________________________________________<br>
Development mailing list<br>
Development@qt-project.org<br>
http://lists.qt-project.org/mailman/listinfo/development<br>
</div>
</body>
</html>