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. How to make revert of CTRL J (Joint Command)
Forum Updated to NodeBB v4.3 + New Features

How to make revert of CTRL J (Joint Command)

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
4 Posts 2 Posters 778 Views
  • 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.
  • K Offline
    K Offline
    kapabahwuk
    wrote on last edited by
    #1

    I use ctrl j short cut to join two lines
    f1();
    f2();
    Ctrl + J
    f1();f2();

    How can I revert it with short cut?

    JonBJ 1 Reply Last reply
    0
    • K kapabahwuk

      I use ctrl j short cut to join two lines
      f1();
      f2();
      Ctrl + J
      f1();f2();

      How can I revert it with short cut?

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by JonB
      #2

      @kapabahwuk
      Ctrl+Z for Undo to revert. If it's not done immediately it wouldn't know where you want to split the line. Otherwise Enter key at the split position at a future time.

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kapabahwuk
        wrote on last edited by
        #3

        I would need to revert after I it saved and reopened and enter is not solution :)

        JonBJ 1 Reply Last reply
        0
        • K kapabahwuk

          I would need to revert after I it saved and reopened and enter is not solution :)

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by JonB
          #4

          @kapabahwuk said in How to make revert of CTRL J (Joint Command):

          I would need to revert after I it saved and reopened

          So if you think about it by definition you would need to save the history, somehow, of all the "joins" you performed on lines so that you can correctly un-join them to "revert" back to the original at a later date. Just like for any other "undo" you want to save across sessions. QUndoStack might be of interest. And there is no relationship between this and a "short cut". I don't see what other answer you expect?

          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