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


C++ Q3PtrList::take方法代码示例

本文整理汇总了C++中Q3PtrList::take方法的典型用法代码示例。如果您正苦于以下问题:C++ Q3PtrList::take方法的具体用法?C++ Q3PtrList::take怎么用?C++ Q3PtrList::take使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Q3PtrList的用法示例。


在下文中一共展示了Q3PtrList::take方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: signal_unconsistencies

void BrowserNode::signal_unconsistencies()
{
  QString pfix = 
    TR("<p><b>Warning, the model is not consistent because some elements have\n"
       "the same internal identifier.</b></p>\n"
       "<p>Users working on the same project have the same use identifier,\n"
       "or you had change the model files, or used Project synchro\n"
       "without following the mandatory rules</p>\n");
  QString msg;
  
  if (!UnconsistencyDeletedMsg.isEmpty())
    msg = pfix + "<p>" + TR("These elements was <b>removed</b>") + " :</p>\n <ul>"
      + UnconsistencyDeletedMsg + "</ul>\n";

  if (!UnconsistencyFixedMsg.isEmpty()) {
    if (UnconsistencyDeletedMsg.isEmpty())
      msg = pfix;
    msg += "<p>"
      + TR("The internal identifier of these elements was changed,\n"
	   "but <u>I can't garantee the references to them are the right one</u>,\n"
	   "check your model")
	+ " :</p>\n<ul>" + UnconsistencyFixedMsg + "</ul>\n";

    do_change_shared_ids();

    do
      ModifiedPackages.take(0)->is_modified = TRUE;
    while (! ModifiedPackages.isEmpty());
  }
  
  if (! msg.isEmpty()) {
    UnconsistencyDeletedMsg = UnconsistencyFixedMsg = QString::null;
    warn(msg);
  }
}
开发者ID:SciBoy,项目名称:douml,代码行数:35,代码来源:BrowserNode.cpp

示例2: post_load

void RelationData::post_load()
{
    while (! IncludeToHeaderIfExternal.isEmpty()) {
        RelationData * rd = IncludeToHeaderIfExternal.take(0);

        if ((rd->end_removed_from != 0) &&
            (rd->end_removed_from->get_type() == UmlClass) &&
            ((ClassData *) rd->end_removed_from->get_data())->cpp_is_external())
            rd->a.cpp_decl = "#include in header";
    }
}
开发者ID:harmegnies,项目名称:douml,代码行数:11,代码来源:RelationData.cpp

示例3: QVERIFY

void tst_Q3PtrList::take()
{
    Q3PtrList<int> list;
    QVERIFY(list.take(0) == 0);
    QVERIFY(list.take(list.count()) == 0);
}
开发者ID:Mr-Kumar-Abhishek,项目名称:qt,代码行数:6,代码来源:tst_q3ptrlist.cpp


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