Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add placeholder text for filters
  • Loading branch information
alexbruy committed Dec 3, 2012
1 parent 61f01c9 commit 6518a97
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/plugins/sextante/gui/ConfigDialog.py
Expand Up @@ -43,6 +43,9 @@ def __init__(self, toolbox):
self.groupIcon.addPixmap(self.style().standardPixmap(QStyle.SP_DirOpenIcon),
QIcon.Normal, QIcon.On)

if hasattr(self.searchBox, 'setPlaceholderText'):
self.searchBox.setPlaceholderText(self.tr("Search..."))

self.fillTree()

def fillTree(self):
Expand Down
3 changes: 3 additions & 0 deletions python/plugins/sextante/gui/SextanteToolbox.py
Expand Up @@ -60,6 +60,9 @@ def __init__(self, iface):
self.algorithmTree.customContextMenuRequested.connect(self.showPopupMenu)
self.algorithmTree.doubleClicked.connect(self.executeAlgorithm)

if hasattr(self.searchBox, 'setPlaceholderText'):
self.searchBox.setPlaceholderText(self.tr("Search..."))

self.fillTree()

def algsListHasChanged(self):
Expand Down

0 comments on commit 6518a97

Please sign in to comment.