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

Add variables for template wizards: CreationDate/-Time/AuthorName/AuthorEmail

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • Qt Creator 2.5.2
    • All Other Issues
    • Linux

      I created some template wizards, and with each of them I had the problem that there are very few predefined variables in QtCreator. Some really important things like the actual date/time are missing, and what I really would like too see is the "AuthorName" and "Author email".

      About author/email: Adding a class template wizard that adds the Author/Email automatically in the cpp source file is very nasty if you have to type the e.g. Author at each new class again because of having to create an extra QLineEdit field for them:
      <field name="AuthorName">
      <fieldcontrol class="QLineEdit" defaulttext="" />
      <fielddescription>Author name:</fielddescription>
      </field>
      I don't know what would be better, add a page in QtCreator preferences that allows to customize these 2 variables, or maybe pick them dynamically from the VCS system that is currently used... (not very reliable)

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

            kleint Friedemann Kleint
            droetker Christian Gonzalez
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes