MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / repopulate

Method repopulate

launcher/ui/widgets/LogView.cpp:99–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99void LogView::repopulate()
100{
101 auto doc = document();
102 doc->clear();
103 if(!m_model)
104 {
105 return;
106 }
107 rowsInserted(QModelIndex(), 0, m_model->rowCount() - 1);
108}
109
110void LogView::rowsAboutToBeInserted(const QModelIndex& parent, int first, int last)
111{

Callers

nothing calls this directly

Calls 3

QModelIndexClass · 0.85
clearMethod · 0.45
rowCountMethod · 0.45

Tested by

no test coverage detected