亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? qabstractitemmodel.cpp

?? QT 開發環境里面一個很重要的文件
?? CPP
?? 第 1 頁 / 共 5 頁
字號:
/******************************************************************************** Copyright (C) 1992-2006 Trolltech ASA. All rights reserved.**** This file is part of the QtCore module of the Qt Toolkit.**** This file may be used under the terms of the GNU General Public** License version 2.0 as published by the Free Software Foundation** and appearing in the file LICENSE.GPL included in the packaging of** this file.  Please review the following information to ensure GNU** General Public Licensing requirements will be met:** http://www.trolltech.com/products/qt/opensource.html**** If you are unsure which license is appropriate for your use, please** review the following information:** http://www.trolltech.com/products/qt/licensing.html or contact the** sales department at sales@trolltech.com.**** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.******************************************************************************/#include "qabstractitemmodel.h"#include <private/qabstractitemmodel_p.h>#include <qdatastream.h>#include <qstringlist.h>#include <qsize.h>#include <qmimedata.h>#include <qdebug.h>#include <qvector.h>#include <qstack.h>#include <qbitarray.h>#include <limits.h>QPersistentModelIndexData *QPersistentModelIndexData::create(const QModelIndex &index){    Q_ASSERT(index.isValid()); // we will _never_ insert an invalid index in the list    QPersistentModelIndexData *d = 0;    QAbstractItemModel *model = const_cast<QAbstractItemModel*>(index.model());    QList<QPersistentModelIndexData*> *persistentIndexes = &(model->d_func()->persistent.indexes);    for (int i = 0; i < persistentIndexes->count(); ++i) {        if (persistentIndexes->at(i)->index == index) {            d = persistentIndexes->at(i);            break;        }    }    if (!d) { // not found        d = new QPersistentModelIndexData();        d->model = model;        d->index = index;        persistentIndexes->append(d);    }    Q_ASSERT(d);    return d;}void QPersistentModelIndexData::destroy(QPersistentModelIndexData *data){    Q_ASSERT(data);    Q_ASSERT(data->ref == 0);    QAbstractItemModel *model = const_cast<QAbstractItemModel*>(data->model);    // a valid persistent model index with a null model pointer can only happen if the model was destroyed    if (model) {        QAbstractItemModelPrivate *p = model->d_func();        Q_ASSERT(p);        p->removePersistentIndexData(data);    }    delete data;}/*!  \class QPersistentModelIndex  \brief The QPersistentModelIndex class is used to locate data in a data model.  \ingroup model-view  A QPersistentModelIndex is a model index that can be stored by an  application, and later used to access information in a model.  Unlike the QModelIndex class, it is safe to store a  QPersistentModelIndex since the model will ensure that references  to items will continue to be valid as long as they can be accessed  by the model.  It is good practice to check that persistent model indexes are valid  before using them.  \sa {Model/View Programming}, QModelIndex, QAbstractItemModel*//*!  \fn QPersistentModelIndex::QPersistentModelIndex()  \internal*/QPersistentModelIndex::QPersistentModelIndex()    : d(0){}/*!  \fn QPersistentModelIndex::QPersistentModelIndex(const QPersistentModelIndex &other)  Creates a new QPersistentModelIndex that is a copy of the \a other persistent  model index.*/QPersistentModelIndex::QPersistentModelIndex(const QPersistentModelIndex &other)    : d(other.d){    if (d) d->ref.ref();}/*!    Creates a new QPersistentModelIndex that is a copy of the model \a index.*/QPersistentModelIndex::QPersistentModelIndex(const QModelIndex &index)    : d(0){    if (index.isValid()) {        d = QPersistentModelIndexData::create(index);        d->ref.ref();    }}/*!    \fn QPersistentModelIndex::~QPersistentModelIndex()    \internal*/QPersistentModelIndex::~QPersistentModelIndex(){    if (d && !d->ref.deref()) {        QPersistentModelIndexData::destroy(d);        d = 0;    }}/*!  Returns true if this persistent model index is equal to the \a other  persistent model index; otherwise returns false.  All values in the persistent model index are used when comparing  with another persistent model index.*/bool QPersistentModelIndex::operator==(const QPersistentModelIndex &other) const{    if (d && other.d)        return d->index == other.d->index;    return d == other.d;}/*!    \since 4.1    Returns true if this persistent model index is smaller than the \a other    persistent model index; otherwise returns false.    All values in the persistent model index are used when comparing    with another persistent model index.*/bool QPersistentModelIndex::operator<(const QPersistentModelIndex &other) const{    if (d && other.d)        return d->index < other.d->index;    return d < other.d;}/*!    \fn bool QPersistentModelIndex::operator!=(const QPersistentModelIndex &other) const    \since 4.2    Returns true if this persistent model index is not equal to the \a    other persistent model index; otherwise returns false.*//*!    Sets the persistent model index to refer to the same item in a model    as the \a other persistent model index.*/QPersistentModelIndex &QPersistentModelIndex::operator=(const QPersistentModelIndex &other){    if (d == other.d)        return *this;    if (d && !d->ref.deref())        QPersistentModelIndexData::destroy(d);    d = other.d;    if (d) d->ref.ref();    return *this;}/*!    Sets the persistent model index to refer to the same item in a model    as the \a other model index.*/QPersistentModelIndex &QPersistentModelIndex::operator=(const QModelIndex &other){    if (d && !d->ref.deref())        QPersistentModelIndexData::destroy(d);    if (other.isValid()) {        d = QPersistentModelIndexData::create(other);        if (d) d->ref.ref();    } else {        d = 0;    }    return *this;}/*!  \fn QPersistentModelIndex::operator const QModelIndex&() const  Cast operator that returns a const QModelIndex&.*/QPersistentModelIndex::operator const QModelIndex&() const{    static const QModelIndex invalid;    if (d)        return d->index;    return invalid;}/*!    \fn bool QPersistentModelIndex::operator==(const QModelIndex &other) const    Returns true if this persistent model index refers to the same location as    the \a other model index; otherwise returns false.    Note that all values in the persistent model index are used when comparing    with another model index.*/bool QPersistentModelIndex::operator==(const QModelIndex &other) const{    if (d)        return d->index == other;    return !other.isValid();}/*!    \fn bool QPersistentModelIndex::operator!=(const QModelIndex &other) const    Returns true if this persistent model index does not refer to the same    location as the \a other model index; otherwise returns false.*/bool QPersistentModelIndex::operator!=(const QModelIndex &other) const{    if (d)        return d->index != other;    return other.isValid();}/*!    \fn int QPersistentModelIndex::row() const    Returns the row this persistent model index refers to.*/int QPersistentModelIndex::row() const{    if (d)        return d->index.row();    return -1;}/*!    \fn int QPersistentModelIndex::column() const    Returns the column this persistent model index refers to.*/int QPersistentModelIndex::column() const{    if (d)        return d->index.column();    return -1;}/*!    \fn void *QPersistentModelIndex::internalPointer() const    \internal    Returns a \c{void} \c{*} pointer used by the model to associate the index with    the internal data structure.*/void *QPersistentModelIndex::internalPointer() const{    if (d)        return d->index.internalPointer();    return 0;}/*!    \fn void *QPersistentModelIndex::internalId() const    \internal    Returns a \c{qint64} used by the model to associate the index with    the internal data structure.*/qint64 QPersistentModelIndex::internalId() const{    if (d)        return d->index.internalId();    return 0;}/*!  Returns the parent QModelIndex for this persistent index, or  QModelIndex() if it has no parent.  \sa child() sibling() model()*/QModelIndex QPersistentModelIndex::parent() const{    if (d)        return d->index.parent();    return QModelIndex();}/*!  Returns the sibling at \a row and \a column or an invalid  QModelIndex if there is no sibling at this position.  \sa parent() child()*/QModelIndex QPersistentModelIndex::sibling(int row, int column) const{    if (d)        return d->index.sibling(row, column);    return QModelIndex();}/*!  Returns the child of the model index that is stored in the given  \a row and \a column.  \sa parent() sibling()*/QModelIndex QPersistentModelIndex::child(int row, int column) const{    if (d)        return d->index.child(row, column);    return QModelIndex();}/*!  Returns the data for the given \a role for the item referred to by the index.*/QVariant QPersistentModelIndex::data(int role) const{    if (d)        return d->index.data(role);    return QVariant();}/*!  \since 4.2  Returns the flags for the item referred to by the index.*/Qt::ItemFlags QPersistentModelIndex::flags() const{    if (d)        return d->index.flags();    return 0;}/*!  Returns the model that the index belongs to.*/const QAbstractItemModel *QPersistentModelIndex::model() const{    if (d)        return d->index.model();    return 0;}/*!    \fn bool QPersistentModelIndex::isValid() const

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人一级片在线观看| 国产精品萝li| 91国偷自产一区二区开放时间 | 亚洲日本在线视频观看| 亚洲激情自拍偷拍| 日韩av中文字幕一区二区| 国产在线视视频有精品| 色综合视频在线观看| 久久久蜜桃精品| 亚洲国产成人tv| 美女www一区二区| 欧美日韩午夜在线| 国产欧美一区二区三区鸳鸯浴 | 成人av在线资源网| 在线播放中文一区| 一区二区三区 在线观看视频| 久久99国产精品麻豆| 欧美区视频在线观看| 亚洲欧美综合色| 五月天久久比比资源色| 91一区二区在线| 久久久久久久电影| 国产精品亚洲视频| 欧美一二三四在线| 蜜桃视频第一区免费观看| 欧洲精品中文字幕| 亚洲线精品一区二区三区 | 亚洲最新视频在线观看| 成人av资源下载| 国产日韩欧美a| 国产福利精品一区| 久久综合狠狠综合久久综合88 | 国产高清不卡一区二区| 久久久久国产精品免费免费搜索| 日日夜夜免费精品| 欧美三区免费完整视频在线观看| 亚洲国产一区视频| 色综合中文字幕国产 | 日韩av在线播放中文字幕| 91丨国产丨九色丨pron| 国产亚洲欧美一区在线观看| 日韩二区三区四区| 欧美无乱码久久久免费午夜一区| 国产精品视频免费| 国产成人8x视频一区二区| 精品国产亚洲一区二区三区在线观看| 亚洲免费色视频| 波多野结衣中文字幕一区二区三区| 日韩精品一区国产麻豆| 久久精品国产亚洲5555| 制服丝袜日韩国产| 日本三级亚洲精品| 欧美精品 国产精品| 日韩国产精品91| 日韩精品在线看片z| 国产在线精品免费av| 国产喂奶挤奶一区二区三区| 国产精品亚洲成人| 国产精品久久久久三级| 色香色香欲天天天影视综合网| 一卡二卡欧美日韩| 欧美亚洲综合另类| 日韩电影一区二区三区四区| 成人午夜激情影院| 国产精品另类一区| 欧美日韩精品一区二区在线播放| 爽爽淫人综合网网站| 日韩欧美一卡二卡| 国产福利一区在线观看| 亚洲色图在线看| 欧美日韩成人综合在线一区二区| 婷婷开心久久网| 久久综合资源网| 99综合电影在线视频| 亚洲一区二三区| 26uuu亚洲| av电影在线观看一区| 亚洲宅男天堂在线观看无病毒| 欧美精品在线一区二区三区| 久久99国产精品久久99果冻传媒| 国产欧美精品一区二区色综合| 99九九99九九九视频精品| 亚洲国产aⅴ天堂久久| 91精品国产综合久久婷婷香蕉| 制服丝袜亚洲网站| 不卡的av网站| 日韩一卡二卡三卡四卡| 婷婷久久综合九色综合绿巨人| 中文字幕一区二区三| 亚洲chinese男男1069| 欧美午夜精品一区二区蜜桃| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆 | zzijzzij亚洲日本少妇熟睡| 亚洲情趣在线观看| 91精品国产综合久久香蕉的特点| 国产91精品一区二区麻豆网站| 亚洲精品视频一区二区| 欧美精品一区二区三区一线天视频 | 天涯成人国产亚洲精品一区av| 久久久久国产精品人| 欧美视频一区在线观看| 国产成人啪午夜精品网站男同| 亚洲国产综合在线| 国产精品妹子av| 精品入口麻豆88视频| 欧美精品一二三| 色婷婷av一区二区三区大白胸| 国模冰冰炮一区二区| 午夜电影网一区| 亚洲欧美一区二区久久| 欧美经典一区二区| 欧美精品一区二区三区久久久 | av男人天堂一区| 国产尤物一区二区在线| 蜜臀国产一区二区三区在线播放 | va亚洲va日韩不卡在线观看| 国产一区二区三区综合| 六月婷婷色综合| 丝袜亚洲精品中文字幕一区| 尤物在线观看一区| 中文字幕一区二区三区不卡在线| 精品国产91久久久久久久妲己| 91在线视频网址| 国产91清纯白嫩初高中在线观看| 秋霞av亚洲一区二区三| 一区二区三区久久| **性色生活片久久毛片| 国产人久久人人人人爽| 91麻豆精品国产91久久久久久久久| 91久久国产最好的精华液| 色综合中文综合网| 欧美成人vr18sexvr| 日韩精品一区在线观看| 日韩欧美一级精品久久| 日韩精品在线一区| 精品日韩av一区二区| 久久久亚洲国产美女国产盗摄 | 亚洲女同女同女同女同女同69| 国产精品毛片久久久久久| 久久精品欧美一区二区三区不卡| 精品国产麻豆免费人成网站| 精品三级在线观看| 久久久国产一区二区三区四区小说 | 亚洲一二三级电影| 亚洲自拍偷拍图区| 日韩精品国产欧美| 麻豆91免费看| 国产成人精品免费一区二区| 波多野结衣一区二区三区| 色综合天天在线| 亚洲欧洲日产国码二区| 看电视剧不卡顿的网站| 国产精品白丝jk白祙喷水网站| 麻豆成人久久精品二区三区红 | 久久综合久久鬼色| 国产精品污污网站在线观看| 日韩毛片高清在线播放| 亚洲一区二区三区四区在线免费观看| 亚洲成人你懂的| 免费看欧美美女黄的网站| 国产一区亚洲一区| 97se亚洲国产综合自在线| 欧美日韩精品是欧美日韩精品| 欧美成人福利视频| 亚洲蜜桃精久久久久久久| 亚洲一区二区三区爽爽爽爽爽| 丝袜脚交一区二区| 久久99久久99| 成人动漫一区二区在线| 67194成人在线观看| 国产欧美日韩卡一| 一区二区三区波多野结衣在线观看 | ww亚洲ww在线观看国产| 亚洲女性喷水在线观看一区| 日本不卡123| 91亚洲精品乱码久久久久久蜜桃| 久久久久久久综合色一本| 日本午夜精品一区二区三区电影| 色综合久久天天综合网| 中文字幕av一区 二区| 精品在线亚洲视频| 制服丝袜av成人在线看| 亚洲一区精品在线| 欧洲一区在线电影| 亚洲精品高清在线| 99国产精品久| 中文字幕一区二区5566日韩| 懂色av中文字幕一区二区三区| xfplay精品久久| 激情综合一区二区三区| 日韩欧美国产1| 久久国产生活片100| 91精品国产综合久久精品app| 一区二区三区加勒比av| 欧美私模裸体表演在线观看| 一区二区三区中文字幕精品精品| 91色.com| 亚洲一二三区在线观看| 欧美高清视频不卡网| 日韩成人精品在线|