mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
fixing planner's gas dialog
Before this commit this dialog had a weird behavior in which when it was shown, the whole screen was still active. In case of a alt+tab, this dialog is sent to behind the application window, but still visible in the task bar. This commit basically changes this behavior to a regular pop-up. Signed-off-by: Danilo Cesar Lemes de Paula <danilo.cesar@collabora.co.uk>
This commit is contained in:
parent
1e69731804
commit
db44045cfe
1 changed files with 3 additions and 2 deletions
|
@ -142,9 +142,10 @@ 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 = new QListView(this);
|
||||
gasListView->setWindowFlags(Qt::FramelessWindowHint | Qt::Popup);
|
||||
gasListView->setModel(gasChoices);
|
||||
gasListView->setWindowModality(Qt::WindowModal);
|
||||
gasListView->hide();
|
||||
|
||||
connect(gasListView, SIGNAL(activated(QModelIndex)), this, SLOT(selectGas(QModelIndex)));
|
||||
|
|
Loading…
Add table
Reference in a new issue