+
+ // Set up settings and event handlers
+ GlobalSettings settings;
+ allow_vertical_dragging_ = settings.value(GlobalSettings::Key_View_AllowVerticalDragging).toBool();
+
+ GlobalSettings::add_change_handler(this);
+}
+
+Viewport::~Viewport()
+{
+ GlobalSettings::remove_change_handler(this);