forked from AG_QGIS/Plugin_SN_Basis
Anpassung an den Wrappern für sn_plan41
This commit is contained in:
@@ -6,6 +6,17 @@ Basis-Dockwidget für alle LNO-Module.
|
||||
|
||||
from sn_basis.functions.qt_wrapper import QDockWidget, QTabWidget
|
||||
from sn_basis.functions.message_wrapper import warning, error
|
||||
from sn_basis.functions.qt_wrapper import (
|
||||
QDockWidget,
|
||||
QTabWidget,
|
||||
Qt,
|
||||
DockWidgetMovable,
|
||||
DockWidgetFloatable,
|
||||
DockWidgetClosable,
|
||||
DockAreaLeft,
|
||||
DockAreaRight,
|
||||
)
|
||||
|
||||
|
||||
|
||||
class BaseDockWidget(QDockWidget):
|
||||
@@ -23,6 +34,19 @@ class BaseDockWidget(QDockWidget):
|
||||
|
||||
def __init__(self, parent=None, subtitle=""):
|
||||
super().__init__(parent)
|
||||
# -----------------------------------------------------
|
||||
# Dock-Konfiguration (WICHTIG)
|
||||
# -----------------------------------------------------
|
||||
self.setFeatures(
|
||||
DockWidgetMovable
|
||||
| DockWidgetFloatable
|
||||
| DockWidgetClosable
|
||||
)
|
||||
|
||||
self.setAllowedAreas(
|
||||
DockAreaLeft
|
||||
| DockAreaRight
|
||||
)
|
||||
|
||||
# -----------------------------------------------------
|
||||
# Titel setzen
|
||||
|
||||
Reference in New Issue
Block a user