It really depends on the time of day you'll be there. I assume you will be in Doha if you're in transit.
If you're there during the day, consider visiting the Museum of Islamic Art followed by lunch in the local markets. If you are travelling with kids they also have a water park where you could spend a few hours. about 4 years ago