src/model.cpp

changeset 338
719b909a7d2b
parent 335
c5830bce1c23
child 374
75efc3ba5a56
equal deleted inserted replaced
337:5bb26aa33ad5 338:719b909a7d2b
177 177
178 /** 178 /**
179 * @brief Sets the path to the model 179 * @brief Sets the path to the model
180 * @param path New path to use 180 * @param path New path to use
181 */ 181 */
182 void updateHeaderNameField(Model& model, const QString &name) 182 void updateHeaderNameField(QTextDocument& model, const QString &name)
183 { 183 {
184 #if 0 184 #if 0
185 // Update the "Name: 1234.dat" comment 185 // Update the "Name: 1234.dat" comment
186 if (model.size() >= 2) { 186 if (model.size() >= 2) {
187 if (const Comment* nameObject = std::get_if<Comment>(&model[1])) { 187 if (const Comment* nameObject = std::get_if<Comment>(&model[1])) {

mercurial