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

Error with auto indentation with if statement

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • Qt Creator 2.1.0
    • Qt Creator 1.3.1
    • Editors
    • None
    • Windows seven, certainly all
    • 27578a6c2c78138d6259f88660867e50ebaac604

    Description

      Wrong indentation when their is no bracket in the root if statement and child have some.

      Qt creator=solid
      void	LoginRequest::RequestToUser()
      {
          exec();
          mLogin = mLoginUI->login->text();
          mPassWord = mLoginUI->password->text();
          mWorld = mLoginUI->world->currentIndex();
          if (mLoginUI->save->checkState() == Qt::Checked)
              if (mSettings.open("settings.xml"))
              {
      	mSettings.save();
      	mSettings.close();
          }
      }
      

      instead of :

      normal=solid
      void	LoginRequest::RequestToUser()
      {
          exec();
          mLogin = mLoginUI->login->text();
          mPassWord = mLoginUI->password->text();
          mWorld = mLoginUI->world->currentIndex();
          if (mLoginUI->save->checkState() == Qt::Checked)
              if (mSettings.open("settings.xml"))
              {
      		mSettings.save();
      		mSettings.close();
      	}
      }
      

      Attachments

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

        Activity

          People

            ckamm Christian Kamm
            flamaros Xavier Bigand
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes