当前位置: 首页>>代码示例>>C++>>正文


C++ ThreadControl::getIndexOfLastQuery方法代码示例

本文整理汇总了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;
                }
	}
}
开发者ID:petrpopov,项目名称:db_transactions,代码行数:34,代码来源:editaccountdialog.cpp

示例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;
        }
    }
}
开发者ID:petrpopov,项目名称:db_transactions,代码行数:26,代码来源:addclientdialog.cpp

示例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;
			}
	}
}
开发者ID:petrpopov,项目名称:db_transactions,代码行数:44,代码来源:transactionwidget.cpp

示例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;
			}
	}
}
开发者ID:petrpopov,项目名称:db_transactions,代码行数:41,代码来源:accountwidget.cpp

示例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;
			}
	}
}
开发者ID:petrpopov,项目名称:db_transactions,代码行数:38,代码来源:addcoursedialog.cpp


注:本文中的ThreadControl::getIndexOfLastQuery方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。