• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

anthonypdawson / vector-inspector / 22525497324

28 Feb 2026 05:30PM UTC coverage: 60.51% (+0.6%) from 59.91%
22525497324

push

github

anthonypdawson
docs: refine project description for clarity and emphasis on features

8573 of 14168 relevant lines covered (60.51%)

0.61 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

88.24
/src/vector_inspector/ui/components/loading_dialog.py
1
from PySide6.QtCore import Qt
1✔
2
from PySide6.QtWidgets import QApplication, QProgressDialog
1✔
3

4
from vector_inspector.services.settings_service import SettingsService
1✔
5

6

7
class LoadingDialog(QProgressDialog):
1✔
8
    def __init__(self, message="Loading...", parent=None):
1✔
9
        super().__init__(message, None, 0, 0, parent)
1✔
10
        self.setWindowTitle("Please Wait")
1✔
11
        self.setWindowModality(Qt.ApplicationModal)
1✔
12
        self.setCancelButton(None)
1✔
13
        self.setMinimumDuration(0)
1✔
14
        self.setAutoClose(False)
1✔
15
        self.setAutoReset(False)
1✔
16
        self.setValue(0)
1✔
17
        self.setMinimumWidth(300)
1✔
18
        # Apply consistent status color from shared styles
19
        try:
1✔
20
            settings = SettingsService()
1✔
21
            # Apply highlight color only if accent styling is enabled.
22
            if settings.get_use_accent_enabled():
1✔
23
                color = settings.get_highlight_color()
×
24
                # Target the label inside QProgressDialog
25
                self.setStyleSheet(f"QProgressDialog QLabel {{ color: {color}; }}")
×
26
        except Exception:
×
27
            pass
×
28
        self.reset()  # Hide dialog by default until show_loading() is called
1✔
29

30
    def show_loading(self, message=None):
1✔
31
        if message:
1✔
32
            self.setLabelText(message)
1✔
33
        self.setValue(0)
1✔
34
        self.show()
1✔
35
        # Force the dialog to render by processing events multiple times
36
        QApplication.processEvents()
1✔
37
        self.repaint()
1✔
38
        QApplication.processEvents()
1✔
39

40
    def hide_loading(self):
1✔
41
        self.reset()
1✔
42
        self.hide()
1✔
43
        self.close()
1✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc