Example #1
0
QString QTabWidgetProto::tabWhatsThis(int index) const
{
  QTabWidget *item = qscriptvalue_cast<QTabWidget*>(thisObject());
  if (item)
    return item->tabWhatsThis(index);
  return QString();
}
Example #2
0
int TabWidget::tabWhatsThis( lua_State * L ) //( int index ) const QString
{
	QTabWidget* obj = ObjectHelper<QTabWidget>::check( L, 1 );
	int index = 0;
	if ( Util::isNum( L, 2 ) )
	{
		if ( Util::toInt( L, 2 )>=0 )
		{
			index = Util::toInt( L, 2 );
		}
		else
		{
			Util::error( L, "Invalid Index" );
		}
	}
	//QString* res = ValueInstaller2<QString>::create( L );
	//*res = *obj->tabWhatsThis( index );
	Util::push( L, obj->tabWhatsThis( index ) );
	return 1;
}