Files
harbour-core/harbour/contrib/hbqt/QCommandLinkButton.cpp
Pritpal Bedi 023b5d8e23 2009-09-09 09:24 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com)
* contrib/hbqt/generator/hbqtgen.prg
    !  cCmd := 'hb_retc( ' + cCmn + '.toLatin1().data()' + ' )'
            =>
       cCmd := 'hb_retc( ' + cCmn + '.toAscii().data()' + ' )'
    
  * contrib/hbqt/QAbstractButton.cpp
  * contrib/hbqt/QAbstractSpinBox.cpp
  * contrib/hbqt/QAction.cpp
  * contrib/hbqt/QApplication.cpp
  * contrib/hbqt/QClipboard.cpp
  * contrib/hbqt/QColor.cpp
  * contrib/hbqt/QComboBox.cpp
  * contrib/hbqt/QCommandLinkButton.cpp
  * contrib/hbqt/QCoreApplication.cpp
  * contrib/hbqt/QDateTime.cpp
  * contrib/hbqt/QDateTimeEdit.cpp
  * contrib/hbqt/QDir.cpp
  * contrib/hbqt/QDirModel.cpp
  * contrib/hbqt/QDoubleSpinBox.cpp
  * contrib/hbqt/QFileDialog.cpp
  * contrib/hbqt/QFileSystemModel.cpp
  * contrib/hbqt/QFont.cpp
  * contrib/hbqt/QFontDatabase.cpp
  * contrib/hbqt/QFontInfo.cpp
  * contrib/hbqt/QFontMetrics.cpp
  * contrib/hbqt/QFontMetricsF.cpp
  * contrib/hbqt/QFtp.cpp
  * contrib/hbqt/QGroupBox.cpp
  * contrib/hbqt/QHttp.cpp
  * contrib/hbqt/QImage.cpp
  * contrib/hbqt/QImageReader.cpp
  * contrib/hbqt/QImageWriter.cpp
  * contrib/hbqt/QInputDialog.cpp
  * contrib/hbqt/QIODevice.cpp
  * contrib/hbqt/QKeyEvent.cpp
  * contrib/hbqt/QKeySequence.cpp
  * contrib/hbqt/QLabel.cpp
  * contrib/hbqt/QLineEdit.cpp
  * contrib/hbqt/QListWidgetItem.cpp
  * contrib/hbqt/QMenu.cpp
  * contrib/hbqt/QMessageBox.cpp
  * contrib/hbqt/QObject.cpp
  * contrib/hbqt/QPrinter.cpp
  * contrib/hbqt/QProcess.cpp
  * contrib/hbqt/QProgressBar.cpp
  * contrib/hbqt/QProgressDialog.cpp
  * contrib/hbqt/QResource.cpp
  * contrib/hbqt/QSound.cpp
  * contrib/hbqt/QSpinBox.cpp
  * contrib/hbqt/QStandardItem.cpp
  * contrib/hbqt/QStatusBar.cpp
  * contrib/hbqt/QStringList.cpp
  * contrib/hbqt/QStyledItemDelegate.cpp
  * contrib/hbqt/QSystemTrayIcon.cpp
  * contrib/hbqt/QTabBar.cpp
  * contrib/hbqt/QTableWidgetItem.cpp
  * contrib/hbqt/QTabWidget.cpp
  * contrib/hbqt/QTextBlock.cpp
  * contrib/hbqt/QTextBoundaryFinder.cpp
  * contrib/hbqt/QTextBrowser.cpp
  * contrib/hbqt/QTextCharFormat.cpp
  * contrib/hbqt/QTextCodec.cpp
  * contrib/hbqt/QTextCursor.cpp
  * contrib/hbqt/QTextDecoder.cpp
  * contrib/hbqt/QTextDocument.cpp
  * contrib/hbqt/QTextDocumentFragment.cpp
  * contrib/hbqt/QTextDocumentWriter.cpp
  * contrib/hbqt/QTextEdit.cpp
  * contrib/hbqt/QTextFormat.cpp
  * contrib/hbqt/QTextFragment.cpp
  * contrib/hbqt/QTextImageFormat.cpp
  * contrib/hbqt/QTextItem.cpp
  * contrib/hbqt/QTextLayout.cpp
  * contrib/hbqt/QTextStream.cpp
  * contrib/hbqt/QToolBox.cpp
  * contrib/hbqt/QTreeWidgetItem.cpp
  * contrib/hbqt/QUrl.cpp
  * contrib/hbqt/QVariant.cpp
  * contrib/hbqt/QWebFrame.cpp
  * contrib/hbqt/QWebHistoryItem.cpp
  * contrib/hbqt/QWebHitTestResult.cpp
  * contrib/hbqt/QWebPage.cpp
  * contrib/hbqt/QWebSecurityOrigin.cpp
  * contrib/hbqt/QWebSettings.cpp
  * contrib/hbqt/QWebView.cpp
  * contrib/hbqt/QWidget.cpp
  * contrib/hbqt/QWizard.cpp
  * contrib/hbxbp/tests/demoxbp.prg
    ! Result of change in hbqtgen.prg
      cCmd := 'hb_retc( ' + cCmn + '.toLatin1().data()' + ' )'
           =>
      cCmd := 'hb_retc( ' + cCmn + '.toAscii().data()' + ' )'
  
      This change is initiated after Alexandr Okhotnikov's message and seems
      to be working harmless with default code page. I will request to Alexsnder 
      to test it deeply and post his results to this list.
2009-09-09 16:33:18 +00:00

105 lines
3.5 KiB
C++

/*
* $Id$
*/
/*
* Harbour Project source code:
* QT wrapper main header
*
* Copyright 2009 Pritpal Bedi <pritpal@vouchcac.com>
*
* Copyright 2009 Marcos Antonio Gambeta <marcosgambeta at gmail dot com>
* www - http://www.harbour-project.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this software; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
* Boston, MA 02111-1307 USA (or visit the web site http://www.gnu.org/).
*
* As a special exception, the Harbour Project gives permission for
* additional uses of the text contained in its release of Harbour.
*
* The exception is that, if you link the Harbour libraries with other
* files to produce an executable, this does not by itself cause the
* resulting executable to be covered by the GNU General Public License.
* Your use of that executable is in no way restricted on account of
* linking the Harbour library code into it.
*
* This exception does not however invalidate any other reasons why
* the executable file might be covered by the GNU General Public License.
*
* This exception applies only to the code released by the Harbour
* Project under the name Harbour. If you copy code from other
* Harbour Project or Free Software Foundation releases into a copy of
* Harbour, as the General Public License permits, the exception does
* not apply to the code that you add in this way. To avoid misleading
* anyone as to the status of such modified files, you must delete
* this exception notice from them.
*
* If you write modifications of your own for Harbour, it is your choice
* whether to permit this exception to apply to your modifications.
* If you do not wish that, delete this exception notice.
*
*/
/*----------------------------------------------------------------------*/
#include "hbapi.h"
#include "hbqt.h"
/*----------------------------------------------------------------------*/
#if QT_VERSION >= 0x040500
/*----------------------------------------------------------------------*/
#include <QtGui/QCommandLinkButton>
/*
* QCommandLinkButton ( QWidget * parent = 0 )
* QCommandLinkButton ( const QString & text, QWidget * parent = 0 )
* QCommandLinkButton ( const QString & text, const QString & description, QWidget * parent = 0 )
*/
HB_FUNC( QT_QCOMMANDLINKBUTTON )
{
hb_retptr( ( QCommandLinkButton* ) new QCommandLinkButton( hbqt_par_QWidget( 1 ) ) );
}
/*
* DESTRUCTOR
*/
HB_FUNC( QT_QCOMMANDLINKBUTTON_DESTROY )
{
}
/*
* QString description () const
*/
HB_FUNC( QT_QCOMMANDLINKBUTTON_DESCRIPTION )
{
hb_retc( hbqt_par_QCommandLinkButton( 1 )->description().toAscii().data() );
}
/*
* void setDescription ( const QString & description )
*/
HB_FUNC( QT_QCOMMANDLINKBUTTON_SETDESCRIPTION )
{
hbqt_par_QCommandLinkButton( 1 )->setDescription( hbqt_par_QString( 2 ) );
}
/*----------------------------------------------------------------------*/
#endif /* #if QT_VERSION >= 0x040500 */
/*----------------------------------------------------------------------*/