Changeset View
Changeset View
Standalone View
Standalone View
src/views/tooltips/dolphinfilemetadatawidget.h
Show All 23 Lines | |||||
24 | 24 | | |||
25 | #include <config-baloo.h> | 25 | #include <config-baloo.h> | ||
26 | 26 | | |||
27 | #include <QWidget> | 27 | #include <QWidget> | ||
28 | 28 | | |||
29 | class KFileItemList; | 29 | class KFileItemList; | ||
30 | class QLabel; | 30 | class QLabel; | ||
31 | 31 | | |||
32 | #ifndef HAVE_BALOO | | |||
33 | class KFileMetaDataWidget; | | |||
34 | #else | | |||
35 | namespace Baloo { | 32 | namespace Baloo { | ||
36 | class FileMetaDataWidget; | 33 | class FileMetaDataWidget; | ||
37 | } | 34 | } | ||
38 | #endif | | |||
39 | 35 | | |||
40 | /** | 36 | /** | ||
41 | * @brief Widget that shows the meta information and a preview of one | 37 | * @brief Widget that shows the meta information and a preview of one | ||
42 | * or more files inside a KToolTipWidget. | 38 | * or more files inside a KToolTipWidget. | ||
43 | */ | 39 | */ | ||
44 | class DolphinFileMetaDataWidget : public QWidget | 40 | class DolphinFileMetaDataWidget : public QWidget | ||
45 | { | 41 | { | ||
46 | Q_OBJECT | 42 | Q_OBJECT | ||
Show All 27 Lines | 62 | signals: | |||
74 | * Is emitted when the user clicks a tag or a link | 70 | * Is emitted when the user clicks a tag or a link | ||
75 | * in the metadata widget. | 71 | * in the metadata widget. | ||
76 | */ | 72 | */ | ||
77 | void urlActivated(const QUrl& url); | 73 | void urlActivated(const QUrl& url); | ||
78 | 74 | | |||
79 | private: | 75 | private: | ||
80 | QLabel* m_preview; | 76 | QLabel* m_preview; | ||
81 | QLabel* m_name; | 77 | QLabel* m_name; | ||
82 | #ifndef HAVE_BALOO | | |||
83 | KFileMetaDataWidget* m_fileMetaDataWidget; | | |||
84 | #else | | |||
85 | Baloo::FileMetaDataWidget* m_fileMetaDataWidget; | 78 | Baloo::FileMetaDataWidget* m_fileMetaDataWidget; | ||
86 | #endif | | |||
87 | }; | 79 | }; | ||
88 | 80 | | |||
89 | #endif | 81 | #endif |