Beispiel #1
0
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();
}
Beispiel #2
0
bool EditorTab::saveFile(int index) 
{
	Editor * editor = (Editor *)widget(index);
	return editor->Save();
	
}