Replace Qt::ToolTip popup window flag with Qt::Tool

Closes #417