Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Refactor to new file
Forum Updated to NodeBB v4.3 + New Features

Refactor to new file

Scheduled Pinned Locked Moved Qt Creator and other tools
2 Posts 2 Posters 712 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DDH87
    wrote on last edited by
    #1

    Hi all,

    The question I have could cause a discussion on good and bad coding practises. This is not the intention and not needed.

    In my programming course I have learned two important things about programming classes. Every class has it's own folder, every function has it's own file.

    Creator doesn't do these thing. When making a class you can give the class his own folder, no problem. But if you use the refactor to add the implementation of your function it will (always) add it to "yourclass.cpp" or the last file you edited. But is it possible to have creator make a new file in the class folder when using the refactor function?

    I hope some of you can help me with this. I hate having to make all of them using new file and hoping creator picks the right one. If this is not possible I'll proberly send it in as a feather request.

    Daniël

    1 Reply Last reply
    0
    • T Offline
      T Offline
      t3685
      wrote on last edited by
      #2

      If you want a separate implementation file for each function, that's probably not possible.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved