Move database status label to bottom left for same-height controls
- Remove database status label from controls section - Move database status label to bottom left of main window - All controls now truly at same height (buttons and dropdown) - Clean horizontal alignment between database and analysis controls - Database status visible but doesn't interfere with control layout - Increased label max width to 400px for better text display
This commit is contained in:
+8
-13
@@ -375,10 +375,7 @@ class MainWindow(QMainWindow):
|
|||||||
controlsGroup = QGroupBox("Controls")
|
controlsGroup = QGroupBox("Controls")
|
||||||
controlsLayout = QHBoxLayout()
|
controlsLayout = QHBoxLayout()
|
||||||
|
|
||||||
# Database controls - left side
|
# Database buttons only (no label)
|
||||||
dbControlsLayout = QVBoxLayout()
|
|
||||||
|
|
||||||
# Database buttons in horizontal layout
|
|
||||||
dbButtonsLayout = QHBoxLayout()
|
dbButtonsLayout = QHBoxLayout()
|
||||||
addDbButton = QPushButton("Add Database File")
|
addDbButton = QPushButton("Add Database File")
|
||||||
addDbButton.clicked.connect(self.addDatabaseFile)
|
addDbButton.clicked.connect(self.addDatabaseFile)
|
||||||
@@ -387,14 +384,6 @@ class MainWindow(QMainWindow):
|
|||||||
dbButtonsLayout.addWidget(addDbButton)
|
dbButtonsLayout.addWidget(addDbButton)
|
||||||
dbButtonsLayout.addWidget(clearDbButton)
|
dbButtonsLayout.addWidget(clearDbButton)
|
||||||
|
|
||||||
# Database status label
|
|
||||||
self.dbPathsLabel = QLabel("No database files selected")
|
|
||||||
self.dbPathsLabel.setMaximumWidth(200)
|
|
||||||
self.dbPathsLabel.setWordWrap(True)
|
|
||||||
|
|
||||||
dbControlsLayout.addLayout(dbButtonsLayout)
|
|
||||||
dbControlsLayout.addWidget(self.dbPathsLabel)
|
|
||||||
|
|
||||||
# Analysis controls - right side
|
# Analysis controls - right side
|
||||||
analyzeControlsLayout = QHBoxLayout()
|
analyzeControlsLayout = QHBoxLayout()
|
||||||
analyzeControlsLayout.addWidget(QLabel("Time period:"))
|
analyzeControlsLayout.addWidget(QLabel("Time period:"))
|
||||||
@@ -414,7 +403,7 @@ class MainWindow(QMainWindow):
|
|||||||
separator.setStyleSheet("color: gray; font-size: 16px; padding: 0 10px;")
|
separator.setStyleSheet("color: gray; font-size: 16px; padding: 0 10px;")
|
||||||
|
|
||||||
# Add all sections to main layout with proper alignment
|
# Add all sections to main layout with proper alignment
|
||||||
controlsLayout.addLayout(dbControlsLayout)
|
controlsLayout.addLayout(dbButtonsLayout)
|
||||||
controlsLayout.addWidget(separator)
|
controlsLayout.addWidget(separator)
|
||||||
controlsLayout.addLayout(analyzeControlsLayout)
|
controlsLayout.addLayout(analyzeControlsLayout)
|
||||||
controlsLayout.addStretch()
|
controlsLayout.addStretch()
|
||||||
@@ -426,6 +415,12 @@ class MainWindow(QMainWindow):
|
|||||||
controlsGroup.setLayout(controlsLayout)
|
controlsGroup.setLayout(controlsLayout)
|
||||||
self.mainLayout.addWidget(controlsGroup)
|
self.mainLayout.addWidget(controlsGroup)
|
||||||
|
|
||||||
|
# Database status label at bottom left
|
||||||
|
self.dbPathsLabel = QLabel("No database files selected")
|
||||||
|
self.dbPathsLabel.setMaximumWidth(400)
|
||||||
|
self.dbPathsLabel.setWordWrap(True)
|
||||||
|
self.mainLayout.addWidget(self.dbPathsLabel)
|
||||||
|
|
||||||
def createTabs(self):
|
def createTabs(self):
|
||||||
# Create tab widget
|
# Create tab widget
|
||||||
self.tabs = QTabWidget()
|
self.tabs = QTabWidget()
|
||||||
|
|||||||
Reference in New Issue
Block a user