get rid of vestigal m_corona now
This commit is contained in:
parent
7c8cf530e1
commit
011f79bca8
@ -68,7 +68,6 @@ Corona::Corona(QObject *parent)
|
||||
kDebug() << "!!{} STARTUP TIME" << QTime().msecsTo(QTime::currentTime()) << "Corona ctor start";
|
||||
#endif
|
||||
d->init();
|
||||
ToolTipManager::self()->m_corona = this;
|
||||
//setViewport(new QGLWidget(QGLFormat(QGL::StencilBuffer | QGL::AlphaChannel)));
|
||||
}
|
||||
|
||||
@ -452,11 +451,7 @@ QRegion Corona::availableScreenRegion(int id) const
|
||||
|
||||
QPoint Corona::popupPosition(const QGraphicsItem *item, const QSize &s, Qt::AlignmentFlag alignment)
|
||||
{
|
||||
// TODO: merge both methods (also these in Applet) into one (with optional alignment) when we can break compatibility
|
||||
// TODO: add support for more flags in the future?
|
||||
|
||||
const QGraphicsItem *actualItem = item;
|
||||
|
||||
const QGraphicsView *v = viewFor(item);
|
||||
|
||||
if (!v) {
|
||||
|
@ -119,8 +119,7 @@ ToolTipManager *ToolTipManager::self()
|
||||
|
||||
ToolTipManager::ToolTipManager(QObject *parent)
|
||||
: QObject(parent),
|
||||
d(new ToolTipManagerPrivate(this)),
|
||||
m_corona(0)
|
||||
d(new ToolTipManagerPrivate(this))
|
||||
{
|
||||
d->showTimer->setSingleShot(true);
|
||||
connect(d->showTimer, SIGNAL(timeout()), SLOT(showToolTip()));
|
||||
|
@ -205,7 +205,6 @@ private:
|
||||
bool eventFilter(QObject *watched, QEvent *event);
|
||||
|
||||
ToolTipManagerPrivate *const d;
|
||||
Corona* m_corona;
|
||||
|
||||
Q_PRIVATE_SLOT(d, void showToolTip())
|
||||
Q_PRIVATE_SLOT(d, void toolTipHovered(bool))
|
||||
|
Loading…
Reference in New Issue
Block a user