bool EditorTab::saveFile(int index) { Editor * editor = (Editor *)widget(index); QString fileNamemod = tabText(index); QChar asterisk = tabText(index).at(0); if(asterisk == '*' && editor->isModified()) { fileNamemod.remove(0, 1); this->setTabText(index, fileNamemod); } return editor->Save(); }
bool EditorTab::saveFile(int index) { Editor * editor = (Editor *)widget(index); return editor->Save(); }