[fix][ui] Toolbar buttons get hidden

This commit is contained in:
Vinícius Moreira
2020-01-29 13:05:31 -03:00
parent ae9eae5d88
commit 1b92cce8f5
2 changed files with 3 additions and 1 deletions

View File

@@ -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 - displaying "No Internet connection" when an error happens during commits reading within the downgrade process
- UI: - UI:
- **About** window icons scaling - **About** window icons scaling
- Toolbar buttons get hidden [#5](https://github.com/vinifmor/bauh/issues/5)
### UI ### UI
- **Style selector** and **Aplication types** action moved to the new **Settings panel** - **Style selector** and **Aplication types** action moved to the new **Settings panel**

View File

@@ -6,7 +6,7 @@ from typing import List, Type, Set
from PyQt5.QtCore import QEvent, Qt, QSize, pyqtSignal from PyQt5.QtCore import QEvent, Qt, QSize, pyqtSignal
from PyQt5.QtGui import QIcon, QWindowStateChangeEvent from PyQt5.QtGui import QIcon, QWindowStateChangeEvent
from PyQt5.QtWidgets import QWidget, QVBoxLayout, QCheckBox, QHeaderView, QToolBar, \ 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.cache import MemoryCache
from bauh.api.abstract.context import ApplicationContext from bauh.api.abstract.context import ApplicationContext
@@ -134,6 +134,7 @@ class ManageWindow(QWidget):
self.toolbar = QToolBar() self.toolbar = QToolBar()
self.toolbar.setStyleSheet('QToolBar {spacing: 4px; margin-top: 15px; margin-bottom: 5px}') 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 = QCheckBox()
self.checkbox_updates.setText(self.i18n['updates'].capitalize()) self.checkbox_updates.setText(self.i18n['updates'].capitalize())