For future reference, Kexi has a ribbon-like UI for anyone that needs ideas/example code.
http://www.kdedevelopers.org/node/2955