diff --git a/hexrd/ui/image_stack_dialog.py b/hexrd/ui/image_stack_dialog.py index 965a9eb71..024d20c0d 100644 --- a/hexrd/ui/image_stack_dialog.py +++ b/hexrd/ui/image_stack_dialog.py @@ -2,7 +2,7 @@ import numpy as np from pathlib import Path -from PySide2.QtCore import QObject, Signal +from PySide2.QtCore import QObject, Signal, Qt from PySide2.QtWidgets import QFileDialog, QMessageBox, QTableWidgetItem from hexrd.ui.constants import MAXIMUM_OMEGA_RANGE @@ -20,6 +20,8 @@ def __init__(self, parent=None, simple_image_series_dialog=None): super(ImageStackDialog, self).__init__(parent) loader = UiLoader() self.ui = loader.load_file('image_stack_dialog.ui', parent) + flags = self.ui.windowFlags() + self.ui.setWindowFlags(flags | Qt.Tool) self.simple_image_series_dialog = simple_image_series_dialog self.detectors = HexrdConfig().detector_names diff --git a/hexrd/ui/llnl_import_tool_dialog.py b/hexrd/ui/llnl_import_tool_dialog.py index 87b0c73d8..3c217f181 100644 --- a/hexrd/ui/llnl_import_tool_dialog.py +++ b/hexrd/ui/llnl_import_tool_dialog.py @@ -4,7 +4,7 @@ import h5py from pathlib import Path -from PySide2.QtCore import QObject, Signal +from PySide2.QtCore import QObject, Signal, Qt from PySide2.QtWidgets import QColorDialog, QFileDialog, QMessageBox from PySide2.QtGui import QColor @@ -41,6 +41,9 @@ def __init__(self, cmap=None, parent=None): loader = UiLoader() self.ui = loader.load_file('llnl_import_tool_dialog.ui', parent) + flags = self.ui.windowFlags() + self.ui.setWindowFlags(flags | Qt.Tool) + self.it = None self.instrument = None self.edited_images = {} diff --git a/hexrd/ui/resources/ui/llnl_import_tool_dialog.ui b/hexrd/ui/resources/ui/llnl_import_tool_dialog.ui index 1c39e7c5d..9f2b79496 100644 --- a/hexrd/ui/resources/ui/llnl_import_tool_dialog.ui +++ b/hexrd/ui/resources/ui/llnl_import_tool_dialog.ui @@ -387,9 +387,9 @@ true - - true - + + positionOutlineButtons + @@ -403,6 +403,9 @@ true + + positionOutlineButtons + @@ -735,4 +738,7 @@ + + + diff --git a/hexrd/ui/simple_image_series_dialog.py b/hexrd/ui/simple_image_series_dialog.py index d20ab8d0c..cc6c9e07e 100644 --- a/hexrd/ui/simple_image_series_dialog.py +++ b/hexrd/ui/simple_image_series_dialog.py @@ -34,6 +34,8 @@ def __init__(self, parent=None): loader = UiLoader() self.ui = loader.load_file('simple_image_series_dialog.ui', parent) + flags = self.ui.windowFlags() + self.ui.setWindowFlags(flags | Qt.Tool) self.update_config_variables()