Improve editor's tooltip. Wrapping hack should no longer be necessary.

Also some less significant improvements.
This commit is contained in:
Leandro Melo
2010-09-01 12:08:38 +02:00
parent b935bca420
commit ba876ffd48
14 changed files with 155 additions and 126 deletions

View File

@@ -36,6 +36,7 @@
#include <QtCore/QObject>
#include <QtCore/QTimer>
#include <QtCore/QRect>
#include <QtGui/QFont>
/*
* In its current form QToolTip is not extensible. So this is an attempt to provide a more
@@ -76,6 +77,9 @@ public:
void hide();
bool isVisible() const;
QFont font() const;
void setFont(const QFont &font);
virtual bool eventFilter(QObject *o, QEvent *event);
private slots:
@@ -88,7 +92,6 @@ private:
bool tipChanged(const QPoint &pos, const TipContent &content, QWidget *w) const;
void setTipRect(QWidget *w, const QRect &rect);
void placeTip(const QPoint &pos, QWidget *w);
int tipScreen(const QPoint &pos, QWidget *w) const;
void showTip();
void hideTipWithDelay();