Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-24035

Code formatting incomplete for vector

XMLWordPrintable

    • All
    • 4ecb87f2f99b52dbd0f5b000ea845e4690bdfe1e (qt-creator/qt-creator/master)

      Example for QAbstractItemModel.

       

      Automatic code Formatting will always do this:

      emit dataChanged(this->index(row),
                       this->index(row),
      { role1, role2 }
      );
      

       
      When instead it should do this:

      emit dataChanged(this->index(row),
                       this->index(row),
                      { role1, role2 }
      );
      

       Or respectively

      emit dataChanged(this->index(row),
                       this->index(row),
                       {
                        role1,
                        role2
                       }
      );
      

       

       Or respectively

      emit dataChanged(this->index(row),
                       this->index(row),
                       { role1,
                         role2 }
      );
      

       

       

       

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kandeler Christian Kandeler
            damianatorrpm Damian Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes