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. Is there a simple way to "search and replace" while keeping capitalization?
Forum Updated to NodeBB v4.3 + New Features

Is there a simple way to "search and replace" while keeping capitalization?

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
4 Posts 2 Posters 136 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.
  • A Offline
    A Offline
    Asperamanca
    wrote last edited by
    #1

    I.e. if I have

    #define DIALOG
    #include "dialog.h"
    
    class CDialog
    {
    };
    

    a way to replace "DIALOG" with "WINDOW", "dialog" with "window" and "Dialog" with "Window" in one go?

    1 Reply Last reply
    0
    • aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote last edited by
      #2

      @Asperamanca: Use the option "Preserve case" ?

      Qt has to stay free or it will die.

      1 Reply Last reply
      1
      • A Offline
        A Offline
        Asperamanca
        wrote last edited by
        #3

        Argh, this flag is not apparent when you just search and replace within the current file...

        1 Reply Last reply
        0
        • aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote last edited by
          #4

          @Asperamanca It is, just click the drop-down menu included in the magnifying glass:

          grafik.png

          Regards

          Qt has to stay free or it will die.

          1 Reply Last reply
          0
          • A Asperamanca has marked this topic as solved

          • Login

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