[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeplasma-addons/applets/weather
From: Davide Bettio <davide.bettio () kdemail ! net>
Date: 2010-11-29 16:55:15
Message-ID: 20101129165515.60362AC8A3 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1202097 by bettio:
There isn't any contextual menu to show in the TreeView so it makes sense to ignore \
the event (so we can show the applet one).
M +6 -0 weatherview.cpp
M +1 -0 weatherview.h
--- trunk/KDE/kdeplasma-addons/applets/weather/weatherview.cpp #1202096:1202097
@@ -19,6 +19,7 @@
#include "weatherview.h"
+#include <QGraphicsSceneContextMenuEvent>
#include <QTreeView>
#include <QHeaderView>
@@ -100,7 +101,12 @@
}
}
+void WeatherView::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
+{
+ event->ignore();
}
+}
+
#include <weatherview.moc>
--- trunk/KDE/kdeplasma-addons/applets/weather/weatherview.h #1202096:1202097
@@ -43,6 +43,7 @@
protected:
void resizeEvent(QGraphicsSceneResizeEvent *event);
QSizeF sizeHint(Qt::SizeHint which, const QSizeF &constraint) const;
+ void contextMenuEvent(QGraphicsSceneContextMenuEvent *event);
Q_SIGNALS:
void geometryChanged(void);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic