From 1b92cce8f5bb53896e770664e9dc788622d14f32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Moreira?= Date: Wed, 29 Jan 2020 13:05:31 -0300 Subject: [PATCH] [fix][ui] Toolbar buttons get hidden --- CHANGELOG.md | 1 + bauh/view/qt/window.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e519a99c..e05a4a0d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - displaying "No Internet connection" when an error happens during commits reading within the downgrade process - UI: - **About** window icons scaling + - Toolbar buttons get hidden [#5](https://github.com/vinifmor/bauh/issues/5) ### UI - **Style selector** and **Aplication types** action moved to the new **Settings panel** diff --git a/bauh/view/qt/window.py b/bauh/view/qt/window.py index b1a13915..97c11a26 100755 --- a/bauh/view/qt/window.py +++ b/bauh/view/qt/window.py @@ -6,7 +6,7 @@ from typing import List, Type, Set from PyQt5.QtCore import QEvent, Qt, QSize, pyqtSignal from PyQt5.QtGui import QIcon, QWindowStateChangeEvent from PyQt5.QtWidgets import QWidget, QVBoxLayout, QCheckBox, QHeaderView, QToolBar, \ - QLabel, QPlainTextEdit, QLineEdit, QProgressBar, QPushButton, QComboBox, QApplication, QListView + QLabel, QPlainTextEdit, QLineEdit, QProgressBar, QPushButton, QComboBox, QApplication, QListView, QSizePolicy from bauh.api.abstract.cache import MemoryCache from bauh.api.abstract.context import ApplicationContext @@ -134,6 +134,7 @@ class ManageWindow(QWidget): self.toolbar = QToolBar() self.toolbar.setStyleSheet('QToolBar {spacing: 4px; margin-top: 15px; margin-bottom: 5px}') + self.toolbar.setSizePolicy(QSizePolicy.Minimum, QSizePolicy.Fixed) self.checkbox_updates = QCheckBox() self.checkbox_updates.setText(self.i18n['updates'].capitalize())