Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Kamm <mail@ckamm.de>2017-05-17 11:55:42 +0300
committerckamm <mail@ckamm.de>2017-05-17 13:26:27 +0300
commitc8d0f788e00bdae125a26d9159ce9efdd6325cd2 (patch)
treead77cb515fe650984e6b76dfffe09838090d77bd /src/gui/tooltipupdater.cpp
parentae263d60bd6d1bc0eb0c3712bab11de120b8cdd3 (diff)
Apply clang-format
Diffstat (limited to 'src/gui/tooltipupdater.cpp')
-rw-r--r--src/gui/tooltipupdater.cpp18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/gui/tooltipupdater.cpp b/src/gui/tooltipupdater.cpp
index 0f9b0510a..30f12a39c 100644
--- a/src/gui/tooltipupdater.cpp
+++ b/src/gui/tooltipupdater.cpp
@@ -20,28 +20,27 @@
using namespace OCC;
-ToolTipUpdater::ToolTipUpdater(QTreeView* treeView)
+ToolTipUpdater::ToolTipUpdater(QTreeView *treeView)
: QObject(treeView)
, _treeView(treeView)
{
- connect(_treeView->model(), SIGNAL(dataChanged(QModelIndex,QModelIndex,QVector<int>)),
- SLOT(dataChanged(QModelIndex,QModelIndex,QVector<int>)));
+ connect(_treeView->model(), SIGNAL(dataChanged(QModelIndex, QModelIndex, QVector<int>)),
+ SLOT(dataChanged(QModelIndex, QModelIndex, QVector<int>)));
_treeView->viewport()->installEventFilter(this);
}
-bool ToolTipUpdater::eventFilter(QObject* /*obj*/, QEvent* ev)
+bool ToolTipUpdater::eventFilter(QObject * /*obj*/, QEvent *ev)
{
- if (ev->type() == QEvent::ToolTip)
- {
+ if (ev->type() == QEvent::ToolTip) {
QHelpEvent *helpEvent = static_cast<QHelpEvent *>(ev);
_toolTipPos = helpEvent->globalPos();
}
return false;
}
-void ToolTipUpdater::dataChanged(const QModelIndex& topLeft,
- const QModelIndex& bottomRight,
- const QVector<int>& roles)
+void ToolTipUpdater::dataChanged(const QModelIndex &topLeft,
+ const QModelIndex &bottomRight,
+ const QVector<int> &roles)
{
if (!QToolTip::isVisible() || !roles.contains(Qt::ToolTipRole) || _toolTipPos.isNull()) {
return;
@@ -56,4 +55,3 @@ void ToolTipUpdater::dataChanged(const QModelIndex& topLeft,
// Update the currently active tooltip
QToolTip::showText(_toolTipPos, _treeView->model()->data(index, Qt::ToolTipRole).toString());
}
-