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. Creator: Find and Replace multi-line
QtWS25 Last Chance

Creator: Find and Replace multi-line

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
1 Posts 1 Posters 1.2k 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.
  • A Offline
    A Offline
    Asperamanca
    wrote on last edited by
    #1

    I want to replace the following lines

        virtual void paint(QPainter* painter,
                           const QStyleOptionGraphicsItem* option,
                           QWidget* widget);
    

    with

        virtual void paint(QPainter* painter,
                           const QStyleOptionGraphicsItem* option,
                           QWidget* widget) override;
    

    How would I do that in Qt Creator? I have tried to figure out a regular expression that includes line breaks and allows for the whitespaces at the beginning of the second and third line, but my searches always come up empty. In fact, as soon as I activate "regular expressions", even a single-line search for

    virtual void paint(QPainter* painter,
    

    comes up empty.

    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