fosKeyMan
|
A tooltip dialog that provides detailed information about a table cell when the mouse hovers over it. More...
Public Member Functions | |
__init__ (self, table_widget, parent=None) | |
Initialize the HoverInfo dialog with the table widget to monitor. | |
eventFilter (self, source, event) | |
Capture mouse hover events and display hover info. | |
show_hover_info (self, item, pos) | |
Show the hover info dialog with details about the cell. | |
Public Attributes | |
activate_label = QLabel(self.tr("Activation Status: ")) | |
cell_label = QLabel(self.tr("Cell: ")) | |
table_widget = table_widget | |
timer = QTimer(self) | |
bool | timer_signal_connected = False |
A tooltip dialog that provides detailed information about a table cell when the mouse hovers over it.
This class creates a small hover window that displays information such as the cell's content, the activation status of the keyfile, and its status in the database. It is triggered when the mouse hovers over a cell in the associated table widget.
Definition at line 6 of file hoverinfo.py.
src.frontend.hoverinfo.HoverInfo.__init__ | ( | self, | |
table_widget, | |||
parent = None ) |
Initialize the HoverInfo dialog with the table widget to monitor.
table_widget | (QTableWidget): The table widget to track mouse hover events on. |
parent | (QWidget, optional): The parent widget. |
Definition at line 14 of file hoverinfo.py.
src.frontend.hoverinfo.HoverInfo.eventFilter | ( | self, | |
source, | |||
event ) |
Capture mouse hover events and display hover info.
This method handles mouse movement over the table widget to determine which cell the mouse is over, and then triggers the tooltip display after a delay.
source | (QObject): The source widget that the event is coming from (table widget viewport). |
event | (QEvent): The event being processed (mouse movement). |
Definition at line 44 of file hoverinfo.py.
src.frontend.hoverinfo.HoverInfo.show_hover_info | ( | self, | |
item, | |||
pos ) |
Show the hover info dialog with details about the cell.
Hover info includes the table header name of this column, cell value, activation status, and database status.
item | (QTableWidgetItem): The table cell item that is being hovered over. |
pos | (QPoint): The current position of the mouse cursor. |
Definition at line 82 of file hoverinfo.py.
src.frontend.hoverinfo.HoverInfo.activate_label = QLabel(self.tr("Activation Status: ")) |
Definition at line 30 of file hoverinfo.py.
src.frontend.hoverinfo.HoverInfo.cell_label = QLabel(self.tr("Cell: ")) |
Definition at line 27 of file hoverinfo.py.
src.frontend.hoverinfo.HoverInfo.table_widget = table_widget |
Definition at line 40 of file hoverinfo.py.
src.frontend.hoverinfo.HoverInfo.timer = QTimer(self) |
Definition at line 36 of file hoverinfo.py.
bool src.frontend.hoverinfo.HoverInfo.timer_signal_connected = False |
Definition at line 37 of file hoverinfo.py.