Uploaded image for project: 'Qt Design Studio'
  1. Qt Design Studio
  2. QDS-8170

Automatic New Lines in QT Design Studio

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • QDS 3.9
    • QDS 3.7
    • Integrated Text Editor
    • None
    • QDS Berlin - 2022 Week 45/46

    Description

      In qt design studio I have a snippet of code

      Connections {
          target: sceneButton
          onPressed: console.log(model.sceneName + " Selected")
      }

      when I save the .ui.qml file it automatically changes the code to

      Connections {
          target: sceneButton
          onPressed: console.log(
              model.sceneName + " Selected")
      }

      This presents a serious problem for me. I want to upload the code generated by design studio to the company code base, which requires passing code review, and these sorts of changes are in violation of my company's style guides. In order to get through code review, I have to open up the files generated by design studio in another text editor and manually make corrections, destroying any potential productivity boost from DS.

      There are many other examples of these seemingly baffling edits, for instance, Design Studio likes putting two spaces before all of the doxygen comments and copyright headers that my company uses, which again require fixing in a second editor in order to get past code review.

      I posted this grievance in the QT forum, and was requested to log it as a bug:
      https://forum.qt.io/topic/138632/automatic-new-lines-in-qt-design-studio/5

      Attachments

        For Gerrit Dashboard: QDS-8170
        # Subject Branch Project Status CR V

        Activity

          People

            thohartm Thomas Hartmann
            joemcguchan Joseph McGuchan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes