aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/locator/locatorwidget.cpp
diff options
context:
space:
mode:
authorAndre Hartmann <aha_1980@gmx.de>2013-08-23 07:13:55 +0200
committerAndré Hartmann <aha_1980@gmx.de>2013-08-23 07:34:35 +0200
commita31b1ef562136d7ee470b976d9a55b5d3e85edfc (patch)
treeb6ea1fcf38455911f0ad93fdd41856dad8efd47a /src/plugins/locator/locatorwidget.cpp
parentd87f10a92041d41bf95d7dee20fff5cde442911c (diff)
Locator: Whitespace fixes.
Change-Id: I8ae3c7b28586d8248a677c9f1f365cacf0709240 Reviewed-by: hjk <hjk121@nokiamail.com>
Diffstat (limited to 'src/plugins/locator/locatorwidget.cpp')
-rw-r--r--src/plugins/locator/locatorwidget.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/plugins/locator/locatorwidget.cpp b/src/plugins/locator/locatorwidget.cpp
index 0ee62c30e9..0093cbf733 100644
--- a/src/plugins/locator/locatorwidget.cpp
+++ b/src/plugins/locator/locatorwidget.cpp
@@ -96,7 +96,7 @@ public:
void updatePreferredSize();
QSize preferredSize() const { return m_preferredSize; }
- void focusOutEvent (QFocusEvent * event) {
+ void focusOutEvent (QFocusEvent *event) {
if (event->reason() == Qt::ActiveWindowFocusReason)
hide();
QTreeView::focusOutEvent(event);
@@ -397,7 +397,7 @@ bool LocatorWidget::eventFilter(QObject *obj, QEvent *event)
}
}
} else if (obj == m_fileLineEdit && event->type() == QEvent::FocusOut) {
- QFocusEvent *fev = static_cast<QFocusEvent*>(event);
+ QFocusEvent *fev = static_cast<QFocusEvent *>(event);
if (fev->reason() != Qt::ActiveWindowFocusReason
|| (fev->reason() == Qt::ActiveWindowFocusReason && !m_completionList->isActiveWindow())) {
m_completionList->hide();
@@ -454,9 +454,9 @@ void LocatorWidget::showPopupNow()
showCompletionList();
}
-QList<ILocatorFilter*> LocatorWidget::filtersFor(const QString &text, QString &searchText)
+QList<ILocatorFilter *> LocatorWidget::filtersFor(const QString &text, QString &searchText)
{
- QList<ILocatorFilter*> filters = m_locatorPlugin->filters();
+ QList<ILocatorFilter *> filters = m_locatorPlugin->filters();
const int whiteSpace = text.indexOf(QLatin1Char(' '));
QString prefix;
if (whiteSpace >= 0)
@@ -474,7 +474,7 @@ QList<ILocatorFilter*> LocatorWidget::filtersFor(const QString &text, QString &s
return prefixFilters;
}
searchText = text;
- QList<ILocatorFilter*> activeFilters;
+ QList<ILocatorFilter *> activeFilters;
foreach (ILocatorFilter *filter, filters)
if (filter->isIncludedByDefault())
activeFilters << filter;
@@ -485,7 +485,7 @@ void LocatorWidget::updateCompletionList(const QString &text)
{
m_updateRequested = true;
QString searchText;
- const QList<ILocatorFilter*> filters = filtersFor(text, searchText);
+ const QList<ILocatorFilter *> filters = filtersFor(text, searchText);
// cancel the old future
m_entriesWatcher->future().cancel();
@@ -562,9 +562,9 @@ void LocatorWidget::show(const QString &text, int selectionStart, int selectionL
void LocatorWidget::filterSelected()
{
QString searchText = tr("<type here>");
- QAction *action = qobject_cast<QAction*>(sender());
+ QAction *action = qobject_cast<QAction *>(sender());
QTC_ASSERT(action, return);
- ILocatorFilter *filter = action->data().value<ILocatorFilter*>();
+ ILocatorFilter *filter = action->data().value<ILocatorFilter *>();
QTC_ASSERT(filter, return);
QString currentText = m_fileLineEdit->text().trimmed();
// add shortcut string at front or replace existing shortcut string
@@ -572,7 +572,7 @@ void LocatorWidget::filterSelected()
searchText = currentText;
foreach (ILocatorFilter *otherfilter, m_locatorPlugin->filters()) {
if (currentText.startsWith(otherfilter->shortcutString() + QLatin1Char(' '))) {
- searchText = currentText.mid(otherfilter->shortcutString().length()+1);
+ searchText = currentText.mid(otherfilter->shortcutString().length() + 1);
break;
}
}