From dde2c2928d02ff95afbaeb5bd6d3a484cb096c1b Mon Sep 17 00:00:00 2001
From: Vincent Texier <vit@free.fr>
Date: Thu, 9 Jul 2015 10:54:03 +0200
Subject: [PATCH] Default hint text when wot combobox is empty

---
 res/i18n/ts/fr_FR.ts        | 10 ++++++++--
 src/cutecoin/gui/wot_tab.py |  5 ++++-
 2 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/res/i18n/ts/fr_FR.ts b/res/i18n/ts/fr_FR.ts
index 8cb174a6..2511799f 100644
--- a/res/i18n/ts/fr_FR.ts
+++ b/res/i18n/ts/fr_FR.ts
@@ -1,5 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
-<!DOCTYPE TS><TS version="2.0" language="fr_FR" sourcelanguage="en">
+<!DOCTYPE TS>
+<TS version="2.0" language="fr_FR" sourcelanguage="en">
 <context>
     <name>@default</name>
     <message>
@@ -1107,7 +1108,7 @@ Revoking your UID can only success if it is not already validated by the network
     </message>
     <message>
         <location filename="../../../src/cutecoin/gui/informations_tab.py" line="140"/>
-        <source>UD(t+1) = MAX { UD(t) ; c &#xc3;&#x97; M(t) / N(t) }</source>
+        <source>UD(t+1) = MAX { UD(t) ; c × M(t) / N(t) }</source>
         <translation type="obsolete">DU(t+1) = MAX { DU(t) ; c × M(t) / N(t) }</translation>
     </message>
     <message>
@@ -2195,6 +2196,11 @@ Veuillez rééssayer plus tard</translation>
         <source>Me</source>
         <translation>Moi</translation>
     </message>
+    <message>
+        <location filename="../../../src/cutecoin/gui/wot_tab.py" line="28"/>
+        <source>Research a pubkey, an uid...</source>
+        <translation>Rechercher une clé publique, un uid...</translation>
+    </message>
 </context>
 <context>
     <name>self.config_dialog</name>
diff --git a/src/cutecoin/gui/wot_tab.py b/src/cutecoin/gui/wot_tab.py
index 7fe44de8..a3299f12 100644
--- a/src/cutecoin/gui/wot_tab.py
+++ b/src/cutecoin/gui/wot_tab.py
@@ -2,8 +2,9 @@
 
 import logging
 from cutecoin.core.graph import Graph
-from PyQt5.QtWidgets import QWidget, QComboBox
+from PyQt5.QtWidgets import QWidget, QComboBox, QLineEdit
 from PyQt5.QtCore import pyqtSlot
+from cutecoin.core.net.api import bma
 from ..gen_resources.wot_tab_uic import Ui_WotTabWidget
 from cutecoin.gui.views.wot import NODE_STATUS_HIGHLIGHTED, NODE_STATUS_SELECTED, NODE_STATUS_OUT, ARC_STATUS_STRONG, ARC_STATUS_WEAK
 
@@ -23,6 +24,8 @@ class WotTabWidget(QWidget, Ui_WotTabWidget):
         # construct from qtDesigner
         self.setupUi(self)
 
+        # Default text when combo lineEdit is empty
+        self.comboBoxSearch.lineEdit().setPlaceholderText(self.tr('Research a pubkey, an uid...'))
         # add combobox events
         self.comboBoxSearch.lineEdit().returnPressed.connect(self.search)
         # To fix a recall of the same item with different case,
-- 
GitLab