Test change - can I push OK?
[kdeedu-porting.git] / kalzium / src / nuclideboardview.cpp
blobdfdd132076ec04184f4574017a179b64b903d617
1 /***************************************************************************
2 * Copyright (C) 2007 by Carsten Niehaus *
3 * cniehaus@kde.org *
5 * *
6 * This program is free software; you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License as published by *
8 * the Free Software Foundation; either version 2 of the License, or *
9 * (at your option) any later version. *
10 * *
11 * This program is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU General Public License *
17 * along with this program; if not, write to the *
18 * Free Software Foundation, Inc., *
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
20 ***************************************************************************/
23 #include "nuclideboardview.h"
24 #include "nuclideboard.h"
26 IsotopeView::IsotopeView(QWidget *parent)
27 : QGraphicsView(parent)
29 m_scene = new IsotopeScene();
30 setScene(m_scene);
31 setSceneRect(m_scene->itemsBoundingRect());
32 ensureVisible(m_scene->sceneRect());
35 void IsotopeView::resizeEvent(QResizeEvent * event)
38 ensureVisible(QRectF(0,0,100,100),0,0);
40 event->accept();
43 #include "nuclideboardview.moc"