2011-03-18 13:37 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)

* contrib/hbqt/qtgui/qth/QDesktopServices.qth
    * Patch [Francesco Perillo]
This commit is contained in:
Viktor Szakats
2011-03-18 12:37:41 +00:00
parent f5529ea16d
commit 294ca7ef4a
2 changed files with 11 additions and 7 deletions

View File

@@ -16,6 +16,10 @@
The license applies to all entries newer than 2009-04-28.
*/
2011-03-18 13:37 UTC+0100 Viktor Szakats (harbour.01 syenar.hu)
* contrib/hbqt/qtgui/qth/QDesktopServices.qth
* Patch [Francesco Perillo]
2011-03-17 09:38 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/include/hbgtinfo.ch
+ added HB_GTI_ONLINE - Is terminal connected?

View File

@@ -15,7 +15,7 @@
QObject = no
Inherits =
Type =
New =
New =
Constructor = no
</CLASS>
@@ -35,7 +35,7 @@ Constructor = no
*/
HB_FUNC( QT_QDESKTOPSERVICES )
{
//__HB_RETPTRGC__( QDesktopServices() );
__HB_RETPTRGC__( NULL );
}
</CODE>
@@ -45,22 +45,22 @@ enum StandardLocation { DesktopLocation, DocumentsLocation, FontsLocation, Appli
<PROTOS>
QString displayName ( StandardLocation type ){
hb_retstr_utf8( QDesktopServices::displayName( ( QDesktopServices::StandardLocation ) hb_parni( 2 ) ).toUtf8().data() );
hb_retstr_utf8( QDesktopServices::displayName( ( QDesktopServices::StandardLocation ) hb_parni( 1 ) ).toUtf8().data() );
}
bool openUrl ( const QUrl & url ){
hb_retl( QDesktopServices::openUrl( *hbqt_par_QUrl( 2 ) ) );
hb_retl( QDesktopServices::openUrl( *hbqt_par_QUrl( 1 ) ) );
}
void setUrlHandler ( const QString & scheme, QObject * receiver, const char * method ){
void * pText;
QDesktopServices::setUrlHandler( hb_parstr_utf8( 2, &pText, NULL ), hbqt_par_QObject( 3 ), hbqt_par_char( 4 ) );
QDesktopServices::setUrlHandler( hb_parstr_utf8( 1, &pText, NULL ), hbqt_par_QObject( 2 ), hbqt_par_char( 3 ) );
hb_strfree( pText );
}
QString storageLocation ( StandardLocation type ){
hb_retstr_utf8( QDesktopServices::storageLocation( ( QDesktopServices::StandardLocation ) hb_parni( 2 ) ).toUtf8().data() );
hb_retstr_utf8( QDesktopServices::storageLocation( ( QDesktopServices::StandardLocation ) hb_parni( 1 ) ).toUtf8().data() );
}
void unsetUrlHandler ( const QString & scheme ){
void * pText;
QDesktopServices::unsetUrlHandler( hb_parstr_utf8( 2, &pText, NULL ) );
QDesktopServices::unsetUrlHandler( hb_parstr_utf8( 1, &pText, NULL ) );
hb_strfree( pText );
}
</PROTOS>