Moved GLib -> Qt conversion functions into separate Tools class
Use C++ static_cast when casting to class pointers.