Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Exclusion Filters #705

Merged
merged 23 commits into from
Dec 29, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add missing translation hooks
  • Loading branch information
glubsy committed Dec 29, 2020
commit a93bd3aeee4f05718bca7ab4f70f5aa797216996
4 changes: 2 additions & 2 deletions qt/exclude_list_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ def _setupUI(self):
gridlayout.addWidget(self.testLine, 6, 0)

layout.addLayout(gridlayout)
self.inputLine.setPlaceholderText("Type a python regular expression here...")
self.inputLine.setPlaceholderText(tr("Type a python regular expression here..."))
self.inputLine.setFocus()
self.testLine.setPlaceholderText("Type a file system path or filename here...")
self.testLine.setPlaceholderText(tr("Type a file system path or filename here..."))
self.testLine.setClearButtonEnabled(True)

# --- model --> view
Expand Down
4 changes: 3 additions & 1 deletion qt/exclude_list_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

from qtlib.column import Column
from qtlib.table import Table
from hscommon.trans import trget
tr = trget("ui")


class ExcludeListTable(Table):
Expand All @@ -31,7 +33,7 @@ def _getData(self, row, column, role):
if role == Qt.CheckStateRole and row.markable:
return Qt.Checked if row.marked else Qt.Unchecked
if role == Qt.ToolTipRole and not row.markable:
return "Compilation error: " + row.get_cell_value("error")
return tr("Compilation error: ") + row.get_cell_value("error")
if role == Qt.DecorationRole and not row.markable:
return QIcon.fromTheme("dialog-error", QIcon(":/error"))
return None
Expand Down