freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

鈴音定時(shí)播放系統(tǒng)-資料下載頁(yè)

2025-01-07 05:08本頁(yè)面
  

【正文】 }。 class ModelMusic : public QAbstractTableModel { public: explicit ModelMusic(QObject *parent = 0)。 virtual int rowCount(const QModelIndex amp。parent = QModelIndex()) const。 virtual int columnCount(const QModelIndex amp。parent = QModelIndex()) const。 QVariant data(const QModelIndex amp。index, int role) const。 QVariant headerData(int section, Qt::Orientation orientation, int role) const。 void refresh()。 QListmusicData nowData。 }。 endif // MODELMUSIC_H ///////////////////////////////////////////////////////////////////////////////// //主要功能: // 模型和數(shù)據(jù)類的全部實(shí)現(xiàn) ///////////////////////////////////////////////////////////////////////////////// include ModelMusic::ModelMusic(QObject *parent) :QAbstractTableModel(parent) { musicData fist。 } int ModelMusic::columnCount(const QModelIndex amp。parent) const { return 3。 } int ModelMusic::rowCount(const QModelIndex amp。parent) const { return ()。 } QVariant ModelMusic::data(const QModelIndex amp。index, int role) const { if(!()) return QVariant()。 if(role == Qt::DisplayRole) { switch(()) { case 0: return nowData[()].description。 break。 case 1: return nowData[()].time。 break。 case 2: return nowData[()].destination。 break。 default: return QVariant()。 } } return QVariant()。 } QVariant ModelMusic::headerData(int section, Qt::Orientation orientation, int role) const { if(role == Qt::DisplayRole amp。amp。 orientation == Qt::Horizontal) switch(section) { case 0: return tr(描述 )。 break。 case 1: return tr(時(shí)間 )。 break。 case 2: return tr(地址 )。 break。 } return QAbstractTableModel::headerData(section, orientation, role)。 } void ModelMusic::refresh() { beginResetModel()。 endResetModel()。 } musicData::musicData() { } ///////////////////////////////////////////////////////////////////////// //主要功能: // 代理類的聲明 /////////////////////////////////////////////////////////////////////////// ifndef DATADELEGATE_H define DATADELEGATE_H include QItemDelegate class DataDelegate : public QItemDelegate { Q_OBJECT public: DataDelegate(QObject *parent = 0)。 QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem amp。option, const QModelIndex amp。index) const。 void setEditorData(QWidget *editor, const QModelIndex amp。index) const。 void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex amp。index) const。 void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem amp。 option, const QModelIndex amp。index) const。 }。 endif // DATADELEGATE_H //////////////////////////////////////////////////////////////////////// //主要功能: // 代理類的全部實(shí)現(xiàn) //////////////////////////////////////////////////////////////////////// include include QDateTimeEdit DataDelegate::DataDelegate(QObject *parent) : QItemDelegate(parent) { } QWidget *DataDelegate::createEditor(QWidget *parent,const QStyleOptionViewItem amp。/*option*/,const QModelIndex amp。/*index*/) const { QDateTimeEdit *editor = new QDateTimeEdit(parent)。 editorsetDisplayFormat(yyyyMMdd)。 editorsetCalendarPopup(true)。 editorinstallEventFilter(const_castDataDelegate*(this))。 return editor。 } void DataDelegate::setEditorData(QWidget *editor,const QModelIndex amp。index) const { QString dateStr= ()data(index).toString()。 QDate date = QDate::fromString(dateStr,Qt::ISODate)。 QDateTimeEdit *edit=static_castQDateTimeEdit*(editor)。 editsetDate(date)。 } void DataDelegate::setModelData(QWidget *editor,QAbstractItemModel *model, const QModelIndex amp。index) const { QDateTimeEdit *edit=static_castQDateTimeEdit*(editor)。 QDate date = editdate()。 modelsetData(index,QVariant((Qt::ISODate)))。 } void DataDelegate::updateEditorGeometry(QWidget *editor,const QStyleOptionViewItem amp。option,const QModelIndex amp。index) const { editorsetGeometry()。 } 運(yùn)行截圖
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1