Warning, file /utilities/krusader/app/DiskUsage/radialMap/segmentTip.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 SPDX-FileCopyrightText: 2003-2004 Max Howell <max.howell@methylblue.com> 0003 SPDX-FileCopyrightText: 2004-2022 Krusader Krew <https://krusader.org> 0004 0005 SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #ifndef SEGMENTTIP_H 0009 #define SEGMENTTIP_H 0010 0011 // QtCore 0012 #include <QEvent> 0013 // QtGui 0014 #include <QPixmap> 0015 // QtWidgets 0016 #include <QWidget> 0017 0018 class File; 0019 class Directory; 0020 0021 namespace RadialMap 0022 { 0023 class SegmentTip : public QWidget 0024 { 0025 public: 0026 explicit SegmentTip(uint); 0027 0028 void updateTip(const File *, const Directory *); 0029 void moveto(QPoint, QWidget &, bool); 0030 0031 private: 0032 virtual bool eventFilter(QObject *, QEvent *) override; 0033 virtual bool event(QEvent *) override; 0034 0035 uint m_cursorHeight; 0036 QPixmap m_pixmap; 0037 QString m_text; 0038 }; 0039 } 0040 0041 #endif