2012-06-04 15:15 UTC-0800 Pritpal Bedi (bedipritpal@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.
This commit is contained in:
Pritpal Bedi
2012-06-04 22:19:27 +00:00
parent d67c95e1bb
commit 02f905dcd5
3 changed files with 16 additions and 4 deletions

View File

@@ -16,6 +16,14 @@
The license applies to all entries newer than 2009-04-28.
*/
2012-06-04 15:15 UTC-0800 Pritpal Bedi (bedipritpal@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.
2012-06-04 23:24 UTC+0200 Viktor Szakats (harbour syenar.net)
* contrib\gtwvg\wvgwing.c
! fixed 64-bit warning (do not use NULL for numeric parameters)

View File

@@ -2782,7 +2782,11 @@ METHOD HbQtSource:parseProto( cProto, fBody_ )
oArg:cTypeHB := "L"
CASE oArg:cCast == "QString"
oArg:cBody := "hb_parstr_utf8( " + cHBIdx + ", &pText%%%, NULL )"
IF oArg:lFar
oArg:cBody := "( QString * ) hb_parstr_utf8( " + cHBIdx + ", &pText%%%, NULL )"
ELSE
oArg:cBody := "hb_parstr_utf8( " + cHBIdx + ", &pText%%%, NULL )"
ENDIF
oArg:cDoc := "c" + oMtd:cDocNM // oArg:cCast - W R O N G
oArg:cTypeHB := "C"
#if 0

View File

@@ -106,9 +106,9 @@ ViewMode viewMode () const
QString getExistingDirectory ( QWidget * parent = 0, const QString & caption = QString(), const QString & dir = QString(), Options options = ShowDirsOnly )
//QString getOpenFileName ( QWidget * parent = 0, const QString & caption = QString(), const QString & dir = QString(), const QString & filter = QString(), QString * selectedFilter = 0, Options options = 0 )
//QStringList getOpenFileNames ( QWidget * parent = 0, const QString & caption = QString(), const QString & dir = QString(), const QString & filter = QString(), QString * selectedFilter = 0, Options options = 0 )
//QString getSaveFileName ( QWidget * parent = 0, const QString & caption = QString(), const QString & dir = QString(), const QString & filter = QString(), QString * selectedFilter = 0, Options options = 0 )
QString getOpenFileName ( QWidget * parent = 0, const QString & caption = QString(), const QString & dir = QString(), const QString & filter = QString(), QString * selectedFilter = 0, Options options = 0 )
QStringList getOpenFileNames ( QWidget * parent = 0, const QString & caption = QString(), const QString & dir = QString(), const QString & filter = QString(), QString * selectedFilter = 0, Options options = 0 )
QString getSaveFileName ( QWidget * parent = 0, const QString & caption = QString(), const QString & dir = QString(), const QString & filter = QString(), QString * selectedFilter = 0, Options options = 0 )
</PROTOS>
<SIGNALS>