[qet] qet/qet: [5580] Minor

[ Thread Index | Date Index | More lists.tuxfamily.org/qet Archives ]


Revision: 5580
Author:   blacksun
Date:     2018-11-10 13:29:41 +0100 (Sat, 10 Nov 2018)
Log Message:
-----------
Minor

Modified Paths:
--------------
    trunk/sources/SearchAndReplace/ui/replaceelementdialog.cpp
    trunk/sources/ui/elementinfopartwidget.cpp
    trunk/sources/ui/elementinfopartwidget.h

Modified: trunk/sources/SearchAndReplace/ui/replaceelementdialog.cpp
===================================================================
--- trunk/sources/SearchAndReplace/ui/replaceelementdialog.cpp	2018-11-10 12:19:30 UTC (rev 5579)
+++ trunk/sources/SearchAndReplace/ui/replaceelementdialog.cpp	2018-11-10 12:29:41 UTC (rev 5580)
@@ -80,6 +80,7 @@
 	{
 		ElementInfoPartWidget *eipw = new ElementInfoPartWidget(str, QETApp::elementTranslatedInfoKey(str), this);
 		eipw->setEraseTextVisible(true);
+		eipw->setPlaceHolderText(tr("Non modifier"));
 		ui->m_scroll_layout->addWidget(eipw);
 		m_eipw_list << eipw;
 	}

Modified: trunk/sources/ui/elementinfopartwidget.cpp
===================================================================
--- trunk/sources/ui/elementinfopartwidget.cpp	2018-11-10 12:19:30 UTC (rev 5579)
+++ trunk/sources/ui/elementinfopartwidget.cpp	2018-11-10 12:29:41 UTC (rev 5580)
@@ -74,6 +74,14 @@
 }
 
 /**
+ * @brief ElementInfoPartWidget::setPlaceHolderText
+ * @param text
+ */
+void ElementInfoPartWidget::setPlaceHolderText(const QString &text) {
+	ui->line_edit->setPlaceholderText(text);
+}
+
+/**
  * @brief ElementInfoPartWidget::setFocusTolineEdit
  * Set the focus to the line edit
  */

Modified: trunk/sources/ui/elementinfopartwidget.h
===================================================================
--- trunk/sources/ui/elementinfopartwidget.h	2018-11-10 12:19:30 UTC (rev 5579)
+++ trunk/sources/ui/elementinfopartwidget.h	2018-11-10 12:29:41 UTC (rev 5580)
@@ -36,6 +36,7 @@
 		QString key         () const {return key_;}
 		void    setText     (const QString &);
 		QString text        () const;
+		void setPlaceHolderText (const QString &text);
 		void    setFocusTolineEdit();
 		void    setEnabled(bool e);
 		void    setDisabled(bool d);


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/