MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / refresh

Method refresh

Plugins/WebBrowser/History/HistoryModel.cpp:99–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99void CHistoryModel::refresh()
100{
101 if(!m_pDatabase) {
102 qCritical(log) << "The m_pDatabase is nullptr";
103 return;
104 }
105 beginResetModel();
106 int nLimit = 100;
107 if(m_pPara)
108 nLimit = m_pPara->GetDatabaseViewLimit();
109 m_historyItems = m_pDatabase->getAllHistory(nLimit); // 最多500条
110 endResetModel();
111}
112
113void CHistoryModel::refresh(const QDate &start, const QDate &end)
114{

Callers 2

slotRefreshMethod · 0.45

Calls 3

GetDatabaseViewLimitMethod · 0.80
getAllHistoryMethod · 0.80
getHistoryByDateMethod · 0.80

Tested by

no test coverage detected