mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 00:04:15 +02:00
[ui] improvement -> settings dialog: not displaying point hand cursors for the lower buttons
This commit is contained in:
@@ -2,6 +2,7 @@ import gc
|
||||
from io import StringIO
|
||||
|
||||
from PyQt5.QtCore import QSize, Qt, QCoreApplication
|
||||
from PyQt5.QtGui import QCursor
|
||||
from PyQt5.QtWidgets import QWidget, QVBoxLayout, QToolBar, QSizePolicy, QPushButton
|
||||
|
||||
from bauh import __app_name__
|
||||
@@ -36,6 +37,7 @@ class SettingsWindow(QWidget):
|
||||
action_bar.setSizePolicy(QSizePolicy.Minimum, QSizePolicy.Fixed)
|
||||
|
||||
bt_close = QPushButton()
|
||||
bt_close.setCursor(QCursor(Qt.PointingHandCursor))
|
||||
bt_close.setText(self.i18n['close'].capitalize())
|
||||
bt_close.clicked.connect(lambda: self.close())
|
||||
action_bar.addWidget(bt_close)
|
||||
@@ -43,6 +45,7 @@ class SettingsWindow(QWidget):
|
||||
action_bar.addWidget(new_spacer())
|
||||
|
||||
bt_change = QPushButton()
|
||||
bt_change.setCursor(QCursor(Qt.PointingHandCursor))
|
||||
bt_change.setStyleSheet(css.OK_BUTTON)
|
||||
bt_change.setText(self.i18n['change'].capitalize())
|
||||
bt_change.clicked.connect(self._save_settings)
|
||||
|
||||
Reference in New Issue
Block a user