┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views/tooltips/tooltipmanager.h
diff options
context:
space:
mode:
authorSerg Podtynnyi <[email protected]>2023-02-04 00:14:53 +0700
committerSerg Podtynnyi <[email protected]>2023-02-05 12:45:38 +0700
commit38c34eeca315c7be58e65d4d3fb72aaf7b866719 (patch)
tree886e53f20c9c43edc3eb7fe04789716a9bc98ebe /src/views/tooltips/tooltipmanager.h
parentffff8af851e3a386c44438337779d0ce7ca98a61 (diff)
Add clang-format and format code as in Frameworks
Diffstat (limited to 'src/views/tooltips/tooltipmanager.h')
-rw-r--r--src/views/tooltips/tooltipmanager.h19
1 files changed, 8 insertions, 11 deletions
diff --git a/src/views/tooltips/tooltipmanager.h b/src/views/tooltips/tooltipmanager.h
index c86c97f6b..9aee295ff 100644
--- a/src/views/tooltips/tooltipmanager.h
+++ b/src/views/tooltips/tooltipmanager.h
@@ -29,12 +29,9 @@ class ToolTipManager : public QObject
Q_OBJECT
public:
- enum class HideBehavior {
- Instantly,
- Later
- };
+ enum class HideBehavior { Instantly, Later };
- explicit ToolTipManager(QWidget* parent);
+ explicit ToolTipManager(QWidget *parent);
~ToolTipManager() override;
/**
@@ -43,7 +40,7 @@ public:
* The tooltip manager takes care that the tooltip is shown
* slightly delayed and with a proper \p transientParent.
*/
- void showToolTip(const KFileItem& item, const QRectF& itemRect, QWindow *transientParent);
+ void showToolTip(const KFileItem &item, const QRectF &itemRect, QWindow *transientParent);
/**
* Hides the currently shown tooltip.
@@ -55,11 +52,11 @@ Q_SIGNALS:
* Is emitted when the user clicks a tag or a link
* in the metadata widget.
*/
- void urlActivated(const QUrl& url);
+ void urlActivated(const QUrl &url);
private Q_SLOTS:
void startContentRetrieval();
- void setPreviewPix(const KFileItem& item, const QPixmap& pix);
+ void setPreviewPix(const KFileItem &item, const QPixmap &pix);
void previewFailed();
void slotMetaDataRequestFinished();
void showToolTip();
@@ -67,14 +64,14 @@ private Q_SLOTS:
private:
/// Timeout from requesting a tooltip until the tooltip
/// should be shown
- QTimer* m_showToolTipTimer;
+ QTimer *m_showToolTipTimer;
/// Timeout from requesting a tooltip until the retrieving of
/// the tooltip content like preview and meta data gets started.
- QTimer* m_contentRetrievalTimer;
+ QTimer *m_contentRetrievalTimer;
/// Transient parent of the tooltip, mandatory on Wayland.
- QWindow* m_transientParent;
+ QWindow *m_transientParent;
QScopedPointer<KToolTipWidget> m_tooltipWidget;
DolphinFileMetaDataWidget *m_fileMetaDataWidget = nullptr;