From 4209416731f4947db25e18fab3e72f7529f61ee8 Mon Sep 17 00:00:00 2001 From: Garux Date: Mon, 21 Aug 2023 17:35:31 +0600 Subject: [PATCH] add visual aid to Shader Editor search entry --- radiant/gtkdlgs.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/radiant/gtkdlgs.cpp b/radiant/gtkdlgs.cpp index 2be1ef70..6c5dcb03 100644 --- a/radiant/gtkdlgs.cpp +++ b/radiant/gtkdlgs.cpp @@ -1572,6 +1572,7 @@ class QLineEdit_search : public QLineEdit QPlainTextEdit& m_textEdit; public: QLineEdit_search( QPlainTextEdit& textEdit ) : m_textEdit( textEdit ){ + setPlaceholderText( QString::fromUtf8( u8"🔍" ) ); QObject::connect( this, &QLineEdit::textEdited, [this]( const QString &text ){ // when typing, we do not want jumping to next occurence on each letter input, set cursor to selection start if( auto cursor = m_textEdit.textCursor(); cursor.hasSelection() ){