本文整理汇总了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);
}
}
示例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";
}
}
示例3: QVERIFY
void tst_Q3PtrList::take()
{
Q3PtrList<int> list;
QVERIFY(list.take(0) == 0);
QVERIFY(list.take(list.count()) == 0);
}