Commit bb22fd78 authored by Etienne Rebetez's avatar Etienne Rebetez Committed by Etienne Rebetez

Resize the scene after the animation.

Thanks to Shalin Shah for fixing this.

BUG:334154
REVIEW:121571
parent b0f5befa
......@@ -27,6 +27,7 @@
#include "psetables.h"
#include <prefs.h>
#include<QTimer>
PeriodicTableView::PeriodicTableView(QWidget *parent)
: QGraphicsView(parent)
......@@ -99,6 +100,8 @@ void PeriodicTableView::slotChangeTable(int table)
setBiggerSceneRect();
m_tableStates->setTableState(m_currentTableInex);
QTimer::singleShot(RESIZE_SCENE_TIMEOUT, this, SLOT(fitPseInView()));
}
void PeriodicTableView::slotSelectOneElement(int element)
......
......@@ -114,6 +114,7 @@ private:
void setBiggerSceneRect();
int m_currentTableInex;
static int const RESIZE_SCENE_TIMEOUT = 2200;
PeriodicTableScene *m_tableScene;
......
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