+
+ m_pixelWidget = new PixelWidget(scrollAreaWidgetContents);
+ verticalLayout_2->addWidget(m_pixelWidget);
+
+ rectLabel->hide();
+ pixelLabel->hide();
+
+ connect(m_pixelWidget, SIGNAL(zoomChanged(int)),
+ zoomSpinBox, SLOT(setValue(int)));
+ connect(zoomSpinBox, SIGNAL(valueChanged(int)),
+ m_pixelWidget, SLOT(setZoom(int)));
+ connect(m_pixelWidget, SIGNAL(mousePosition(int, int)),
+ this, SLOT(showPixel(int, int)));
+ connect(m_pixelWidget, SIGNAL(gridGeometry(const QRect &)),
+ this, SLOT(showGrid(const QRect &)));