本文整理汇总了C++中Tab::interlinearLines方法的典型用法代码示例。如果您正苦于以下问题:C++ Tab::interlinearLines方法的具体用法?C++ Tab::interlinearLines怎么用?C++ Tab::interlinearLines使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Tab
的用法示例。
在下文中一共展示了Tab::interlinearLines方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: viewsAreAcceptable
bool ViewConfigurationDialog::viewsAreAcceptable()
{
if( mProject->views()->isEmpty() )
{
QMessageBox::warning(this, tr("Error"), tr("You need at least one view.") );
return false;
}
for(int i=0; i < mProject->views()->count(); i++)
{
View * v = mProject->views()->at(i);
if( v->tabs()->isEmpty() )
{
QMessageBox::warning(this, tr("Error"), tr("Each view needs at least one tab for the view '%1' (or just delete the view).").arg(v->name()) );
return false;
}
for(int j=0; j < v->tabs()->count(); j++)
{
Tab * t = v->tabs()->at(j);
QList<WritingSystem> keys = t->interlinearLineKeys();
if( keys.isEmpty() )
{
QMessageBox::warning(this, tr("Error"), tr("You need to have at least one entry for the view, '%1' and the tab '%2.'").arg(v->name()).arg(t->name()) );
return false;
}
for(int k=0; k < keys.count(); k++)
{
if( t->interlinearLines(keys.at(k))->isEmpty() )
{
QMessageBox::warning(this, tr("Error"), tr("For each tab and baseline type, you need to have at least one interlinear line for the view '%1,' tab '%2,' and baseline '%3.'").arg(v->name()).arg(t->name()).arg(keys.at(k).name()) );
return false;
}
}
}
}
return true;
}