Skip to content

Commit

Permalink
minor updates (external editor; search item number; logo)
Browse files Browse the repository at this point in the history
  • Loading branch information
hluk committed Oct 9, 2010
1 parent e80ceda commit 918ec54
Show file tree
Hide file tree
Showing 6 changed files with 215 additions and 183 deletions.
Binary file removed screenshot.png
Binary file not shown.
8 changes: 4 additions & 4 deletions src/clipboardbrowser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,17 +218,17 @@ void ClipboardBrowser::filterItems(const QString &str)
emit hideSearch();
}
else {
QRegExp re(str);
re.setCaseSensitivity(Qt::CaseInsensitive);
m->setSearch(&re);

// if search string is a number N: highlight Nth item
bool ok;
int n = str.toInt(&ok);
if (ok && n >= 0 && n < m->rowCount()) {
m->setSearch(n);
setCurrent(n);
return;
} else {
QRegExp re(str);
re.setCaseSensitivity(Qt::CaseInsensitive);
m->setSearch(&re);
}
}

Expand Down
219 changes: 121 additions & 98 deletions src/images/icon-running.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 918ec54

Please sign in to comment.