Wrap code for better readability

This commit is contained in:
Simon De Backer
2020-09-07 22:03:40 +02:00
parent 8ee38fab9e
commit 5d92393ee7
202 changed files with 4031 additions and 2153 deletions

View File

@@ -50,7 +50,8 @@ void ModelIndexCommand::setData(const QVariant &value, int role)
@brief ModelIndexCommand::redo
Reimplemented from QUndoCommand
*/
void ModelIndexCommand::redo() {
void ModelIndexCommand::redo()
{
if (m_model && m_index.isValid()) {
m_model->setData(m_index, m_new_value, m_role);
}
@@ -60,7 +61,8 @@ void ModelIndexCommand::redo() {
@brief ModelIndexCommand::undo
Reimplemented from QUndoCommand
*/
void ModelIndexCommand::undo() {
void ModelIndexCommand::undo()
{
if (m_model && m_index.isValid()) {
m_model->setData(m_index, m_old_value, m_role);
}