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 682 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 5 Feb 2023, 08:06 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?

    J 1 Reply Last reply 5 Feb 2023, 08:25
    0
    • K kapabahwuk
      5 Feb 2023, 08:06

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

      How can I revert it with short cut?

      J Offline
      J Offline
      JonB
      wrote on 5 Feb 2023, 08:25 last edited by JonB 2 May 2023, 08:26
      #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 5 Feb 2023, 08:36 last edited by
        #3

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

        J 1 Reply Last reply 5 Feb 2023, 10:01
        0
        • K kapabahwuk
          5 Feb 2023, 08:36

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

          J Offline
          J Offline
          JonB
          wrote on 5 Feb 2023, 10:01 last edited by JonB 2 May 2023, 10:02
          #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

          1/4

          5 Feb 2023, 08:06

          • Login

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