mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-07-02 22:34:52 -04:00
Affine2D: Remove * operator, it's unused.
RendererBase: Add ComputeCamera() as a virtual function. Add strips parameter to TotalIterCount(). Renderer: Implement ComputeCamera() as an override. SpatialFilter: Ensure filters that are too small are made large enough to create. FinalRenderDialog: Add estimated iters table row and populate on all UI updates. FractoriumParams: Zoom was not being saved, loaded. Fixed. GLWidget: Prevent mouse wheel event from being passed to the scroll bars. It should only affect the scale.
This commit is contained in:
@ -713,7 +713,7 @@ void GLWidget::wheelEvent(QWheelEvent* e)
|
||||
if (GLEmberControllerBase* controller = GLController())
|
||||
controller->Wheel(e);
|
||||
|
||||
QGLWidget::wheelEvent(e);
|
||||
//Do not call QGLWidget::wheelEvent(e) because this should only affect the scale and not the position of the scroll bars.
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -727,17 +727,15 @@ void GLWidget::resizeEvent(QResizeEvent* e)
|
||||
{
|
||||
if (m_Fractorium)
|
||||
{
|
||||
//qDebug() << "GLWidget::resizeEvent() : w, h: " << width() << ", " << height() << ". oldsize: " << e->oldSize().width() << ", " << e->oldSize().height();
|
||||
//m_Fractorium->m_WidthSpin->setValue(width());
|
||||
//m_Fractorium->m_HeightSpin->setValue(height());
|
||||
|
||||
// if (GLEmberControllerBase* controller = GLController())
|
||||
// controller->SyncSizes();//For some reason the base resize can't be called here or else it causes a crash.
|
||||
}
|
||||
|
||||
//QGLWidget::resizeEvent(e);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Set the dimensions of the drawing area.
|
||||
/// This will be called from the main window's SyncSizes() function.
|
||||
/// </summary>
|
||||
/// <param name="w">Width in pixels</param>
|
||||
/// <param name="h">Height in pixels</param>
|
||||
void GLWidget::SetDimensions(int w, int h)
|
||||
{
|
||||
setFixedSize(w, h);
|
||||
|
Reference in New Issue
Block a user