Actualización del historial de cálculos con nuevas expresiones y ajustes en la configuración de la interfaz. Se modifica la geometría de la ventana y se añaden nuevos formatos de texto en la calculadora. Se optimiza el sistema de autocompletado y se corrige la inicialización del popup de autocompletado.

This commit is contained in:
Miguel 2025-06-10 23:48:10 +02:00
parent efbc6a5b52
commit 242d5095af
3 changed files with 12 additions and 10 deletions

View File

@ -1,8 +1,9 @@
$$Brix = \frac{Brix_{syrup} \cdot \delta_{syrup} + (Brix_{water} \cdot \delta_{water} \cdot Rateo)}{\delta_{syrup} + \delta_{water} \cdot Rateo}$$
61.6/2.54
k=2.54
m=((sqrt(t)/(2+8))/e**2+sqrt(k**w))/((sqrt(t)/(2+8))/e**2+sqrt(k**(w+2)))
1080/1440
t=?
1920/(3/4)

View File

@ -1,15 +1,15 @@
{
"window_geometry": {
"x": 393,
"y": 234,
"width": 1000,
"x": 732,
"y": 205,
"width": 741,
"height": 700
},
"debug_mode": false,
"latex_panel_visible": true,
"sash_pos_x": 450,
"splitter_sizes": [
284,
210
210,
155
]
}

View File

@ -373,7 +373,7 @@ class AutocompletePopup(QWidget):
item_selected = Signal(str) # Emite el texto seleccionado
def __init__(self, parent=None):
super().__init__(parent, Qt.Tool | Qt.FramelessWindowHint | Qt.WindowStaysOnTopHint)
super().__init__(None, Qt.Tool | Qt.FramelessWindowHint | Qt.WindowStaysOnTopHint)
self.setAttribute(Qt.WA_ShowWithoutActivating, True)
self.setFocusPolicy(Qt.NoFocus)
@ -644,7 +644,8 @@ class HybridCalculatorPySide6(QMainWindow):
'custom_type': self._create_format("#4ec9b0"),
'plot': self._create_format("#569cd6", underline=True),
'type_indicator': self._create_format("#808080"),
'clickable': self._create_format("#4fc3f7", underline=True)
'clickable': self._create_format("#4fc3f7", underline=True),
'helper': self._create_format("#ffd700", italic=True)
}
def _create_format(self, color: str, bold: bool = False, italic: bool = False, underline: bool = False) -> QTextCharFormat: