┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views/tooltips/filemetadatatooltip.h
diff options
context:
space:
mode:
authorElvis Angelaccio <[email protected]>2017-02-05 22:53:50 +0100
committerElvis Angelaccio <[email protected]>2017-02-05 22:56:40 +0100
commit230fe13d1fccf8c2ab09c0873c1cc4c733cfc3b4 (patch)
treeb4dba8cc512700f5dfa5b488dfa841096db8fa8c /src/views/tooltips/filemetadatatooltip.h
parent6fc68fe650a41fcd7f4d52c8e97723c06b0dfbff (diff)
Port tooltips to KToolTipWidget
Use the new KToolTipWidget class (introduced by kwidgetsaddons 5.30) as backend of ToolTipManager. FileMetaDataToolTip becomes a simple widget used as content of the tooltip. It is now possible to actually use the metadata widget shown inside the tooltips. Tooltips are now functional on Wayland as well. More information about KToolTipWidget in https://git.reviewboard.kde.org/r/129648/ BUG: 352276 BUG: 371223 FIXED-IN: 17.04.0 Closes T4980 Differential Revision: D4449
Diffstat (limited to 'src/views/tooltips/filemetadatatooltip.h')
-rw-r--r--src/views/tooltips/filemetadatatooltip.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/views/tooltips/filemetadatatooltip.h b/src/views/tooltips/filemetadatatooltip.h
index 379b025c8..1738e386c 100644
--- a/src/views/tooltips/filemetadatatooltip.h
+++ b/src/views/tooltips/filemetadatatooltip.h
@@ -37,8 +37,8 @@ namespace Baloo {
#endif
/**
- * @brief Tooltip, that shows the meta information and a preview of one
- * or more files.
+ * @brief Widget that shows the meta information and a preview of one
+ * or more files inside a KToolTipWidget.
*/
class FileMetaDataToolTip : public QWidget
{
@@ -69,10 +69,6 @@ signals:
*/
void metaDataRequestFinished(const KFileItemList& items);
-protected:
- virtual void paintEvent(QPaintEvent* event) Q_DECL_OVERRIDE;
- virtual void showEvent(QShowEvent *) Q_DECL_OVERRIDE;
-
private:
QLabel* m_preview;
QLabel* m_name;