Example #1
0
int TabWidget::setTabWhatsThis ( lua_State * L ) //( int index, const QString & text )void
{
	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* text = ValueInstaller2<QString>::check( L, 3 );
	obj->setTabWhatsThis( index, Util::toString( L, 3 ) );
	return 0;
}
Example #2
0
void QTabWidgetProto::setTabWhatsThis(int index, const QString &text)
{
  QTabWidget *item = qscriptvalue_cast<QTabWidget*>(thisObject());
  if (item)
    item->setTabWhatsThis(index, text);
}