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

Code formatting incomplete for vector

    XMLWordPrintable

Details

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

    Description

      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 }
      );
      

       

       

       

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes