SF.net SVN: harbour-project:[17551] trunk/harbour

16 views
Skip to first unread message

vouc...@users.sourceforge.net

unread,
Jun 4, 2012, 6:19:28 PM6/4/12
to harbou...@googlegroups.com
Revision: 17551
http://harbour-project.svn.sourceforge.net/harbour-project/?rev=17551&view=rev
Author: vouchcac
Date: 2012-06-04 22:19:27 +0000 (Mon, 04 Jun 2012)
Log Message:
-----------
2012-06-04 15:15 UTC-0800 Pritpal Bedi (bedip...@hotmail.com)
* contrib/hbqt/hbmk2_qt.hb
! Tweaked: ( QString * ) casted argument to be compilable.

* contrib/hbqt/qtgui/qth/QFileDialog.qth
+ Enabled: getOpenFileName() etc. methods which we commented out because
of lack of knowledge how those should been handelled.

Modified Paths:
--------------
trunk/harbour/ChangeLog
trunk/harbour/contrib/hbqt/hbmk2_qt.hb
trunk/harbour/contrib/hbqt/qtgui/qth/QFileDialog.qth

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

Bacco

unread,
Jun 4, 2012, 6:47:59 PM6/4/12
to harbou...@googlegroups.com
Thanks Pritpal.

>    + Enabled: getOpenFileName() etc. methods which we commented out because
>      of lack of knowledge how those should been handeled.
Is there any restriction or caution you advise to use this method?

Thanks
Bacco

Pritpal Bedi

unread,
Jun 4, 2012, 7:01:30 PM6/4/12
to Harbour Developers
Hi

> >    + Enabled: getOpenFileName() etc. methods which we commented out because
> >      of lack of knowledge how those should been handeled.
>
> Is there any restriction or caution you advise to use this method?

In normal use NO.

Actually, if one needs the selected filter
off the dialog then this implementation is
not adequate. Will look to this later.

Pritpal Bedi

Bacco

unread,
Jun 4, 2012, 8:47:56 PM6/4/12
to harbou...@googlegroups.com
Tested for normal use. Using the filters in the constructor it behaves
OK. Didn't tested with QDir filters neither stringlist based ones.

#include "hbqtgui.ch"

PROCEDURE main()
oWnd:=QMainWindow()

cTitle := "Open the magic file"
cPath := "."
cFilter := "Image files (*.png *.jpg *.bmp);;Source files (*.prg
*.ch);;All files (*.*)"

cFile := QFileDialog():getOpenFileName( oWnd, cTitle, cPath, cFilter )

oWnd:show()
QApplication():exec()
RETURN
Reply all
Reply to author
Forward
0 new messages