Commit 3858837f authored by Mathieu Westphal's avatar Mathieu Westphal
Browse files

Correcting Mem errors and dead code

parent d4e39c46
......@@ -57,6 +57,7 @@ public:
pqInternal(pqProxySelectionWidget* self)
: ShowingAdvancedProperties(false)
, HideProxyWidgetsInDefaultView(false)
, HideProxyWidgets(false)
{
this->Ui.setupUi(self);
this->Ui.verticalLayout->setSpacing(pqPropertiesPanel::suggestedVerticalSpacing());
......
......@@ -53,19 +53,6 @@ pqQVTKWidget::pqQVTKWidget(QWidget* parentObject, Qt::WindowFlags f)
: Superclass(parentObject, f)
, SizePropertyName("ViewSize")
{
// Tmp objects
QPixmap mousePixmap(":/pqCore/Icons/pqMousePick15.png");
int w = mousePixmap.width();
int h = mousePixmap.height();
QImage image(w, h, QImage::Format_ARGB32);
QPainter painter(&image);
painter.drawPixmap(0, 0, mousePixmap);
painter.end();
image = image.rgbSwapped();
// Save the loaded image
this->MousePointerToDraw = image.mirrored();
this->connect(this, SIGNAL(resized()), SLOT(updateSizeProperties()));
// disable HiDPI if we are running tests
......
......@@ -98,7 +98,6 @@ private:
Q_DISABLE_COPY(pqQVTKWidget)
vtkSmartPointer<vtkSMProxy> ViewProxy;
vtkWeakPointer<vtkSMSession> Session;
QImage MousePointerToDraw;
QString SizePropertyName;
vtkNew<vtkEventQtSlotConnect> VTKConnect;
};
......
......@@ -51,6 +51,7 @@ pqAnimationModel::pqAnimationModel(QGraphicsView* p)
, EndTime(1)
, Interactive(false)
, CurrentTimeGrabbed(false)
, NewCurrentTime(0)
, CurrentTrackGrabbed(NULL)
, CurrentKeyFrameGrabbed(NULL)
, CurrentKeyFrameEdge(0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment