1 #ifndef _SCROLLABLE_SCENE_H_
2 #define _SCROLLABLE_SCENE_H_
6 #include "qui/PathScene.hpp"
8 class ScrollableScene : public QWidget
13 ScrollableScene(QWidget *parent=0);
16 PathScene& scene() { return path_scene; }
18 //! update the scrollbar with current viewport information
19 void updateScrollBar();
20 //! update scene with the properly scalled scrollbar offset
21 void setViewportCenter(int x);
24 QScrollBar viewportBar;