本文整理汇总了C++中ThreadControl::getIndexOfLastQuery方法的典型用法代码示例。如果您正苦于以下问题:C++ ThreadControl::getIndexOfLastQuery方法的具体用法?C++ ThreadControl::getIndexOfLastQuery怎么用?C++ ThreadControl::getIndexOfLastQuery使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ThreadControl
的用法示例。
在下文中一共展示了ThreadControl::getIndexOfLastQuery方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: chooseQuery
void EditAccountDialog::chooseQuery()
{
ThreadControl *tc = qobject_cast<ThreadControl *>( sender() );
if( !tc )
return;
int i = tc->getIndexOfLastQuery( qList );
if( i < 0 )
return;
QStringList list = tc->getDataList();
switch(i)
{
case 0:
{
if( list.count() >= 1 )
loadData( list.first() );
break;
}
case 1:
{
if( list.count() >= 1 )
checkAnswer( list.first() );
break;
}
case 2:
{
if( list.count() >=1 )
changeOwnerAnswer( list.first() );
break;
}
}
}
示例2: loadQuery
void AddClientDialog::loadQuery()
{
ThreadControl *tc = qobject_cast<ThreadControl *>( sender() );
if( !tc )
return;
int i = tc->getIndexOfLastQuery( qList );
if( i < 0 )
return;
QStringList list = tc->getDataList();
switch(i)
{
case 0:
{
checkData( list );
break;
}
case 1:
{
if( list.count() > 0 )
insertData( list.first() );
break;
}
}
}
示例3: loadQuery
void TransactionWidget::loadQuery()
{
ThreadControl *tc = qobject_cast<ThreadControl *>( sender() );
if( !tc )
return;
int i = tc->getIndexOfLastQuery( qList );
if( i < 0 )
return;
QString str = tc->getData();
switch(i)
{
case 0:
{
loadHeader( str );
break;
}
case 1:
case 4:
case 5:
{
loadTransactions( str );
break;
}
case 2:
{
clearTransaction( str );
break;
}
case 3:
{
loadAccount( str );
break;
}
case 6:
case 7:
{
loadAccountSaldo( str );
break;
}
}
}
示例4: chooseQuery
void AccountWidget::chooseQuery()
{
ThreadControl *tc = qobject_cast<ThreadControl *>( sender() );
if( !tc )
return;
int i = tc->getIndexOfLastQuery( qList );
if( i < 0 )
return;
QString str = tc->getData();
info->showProgressBar( false );
switch(i)
{
case 0:
{
loadCurency( str );
break;
}
case 1:
{
disconnect( tableWidget, SIGNAL( rowSelected(int) ), this, SLOT( selectRow(int) ) );
loadAccount(str);
tableWidget->SetFocus(lastRow);
connect( tableWidget, SIGNAL( rowSelected(int) ), this, SLOT( selectRow(int) ) );
break;
}
case 2:
{
loadStats( str );
break;
}
case 3:
{
checkDeleteAnswer( str );
break;
}
}
}
示例5: loadQuery
void AddCourseDialog::loadQuery()
{
ThreadControl *tc = qobject_cast<ThreadControl *>( sender() );
if( !tc )
return;
int i = tc->getIndexOfLastQuery( qList );
if( i < 0 )
return;
QStringList list = tc->getDataList();
info->showProgressBar( false );
if( i < 0 )
return;
switch(i)
{
case 0:
{
if( list.count() > 0 )
loadCurrency( list.first() );
break;
}
case 1:
{
if( list.count() > 0 )
loadAnswer( list.first() );
break;
}
case 2:
{
if( list.count() > 0 )
checkSaleAnswer( list.first() );
break;
}
}
}