Skip to content
Permalink
Browse files
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.
@@ -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):
@@ -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):

0 comments on commit 6518a97

Please sign in to comment.