Tools: Use Q_macros instead of Qt keywords