Changed the WindowHint of the planner popup to 'Popup'

Changed the Window Hint of the planner popup to 'Popup'
this removes ghost items from the task bar.

Hint By: Danilo Cesar
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
Tomaz Canabrava 2013-08-26 08:49:28 -03:00
parent 6cb1f1a250
commit aceb002a33

View file

@ -137,7 +137,7 @@ DivePlannerGraphics::DivePlannerGraphics(QWidget* parent): QGraphicsView(parent)
// Prepare the stuff for the gas-choices.
gasChoices = new QStringListModel(QStringList() << tr("AIR") << tr("EAN32") << tr("EAN36"));
gasListView = new QListView();
gasListView->setWindowFlags(Qt::FramelessWindowHint);
gasListView->setWindowFlags(Qt::Popup);
gasListView->setModel(gasChoices);
gasListView->hide();