Spreadsheet: fix some warnings and issues reported by GH actions

This commit is contained in:
wmayer
2023-02-10 15:20:52 +01:00
committed by wwmayer
parent 108e30d8ba
commit c0bbff3f28
2 changed files with 20 additions and 17 deletions

View File

@@ -29,29 +29,29 @@
namespace SpreadsheetGui {
// Currently SheetTableViewAccessibleInterface below deactivates the
// built-in QAccessibleTable interface, and all the accessibility
// Currently SheetTableViewAccessibleInterface below deactivates the
// built-in QAccessibleTable interface, and all the accessibility
// features.
//
//
// For a proper implementation, start by extending that
// and ensure you're not queue-ing empty cells, or counting empty cells
//
//
// Otherwise it will hang - https://github.com/FreeCAD/FreeCAD/issues/8265
class SheetTableViewAccessibleInterface : public QAccessibleWidget
{
public:
SheetTableViewAccessibleInterface(SpreadsheetGui::SheetTableView* w);
explicit SheetTableViewAccessibleInterface(SpreadsheetGui::SheetTableView* view);
QString text(QAccessible::Text txt) const override;
QString text(QAccessible::Text t) const override;
QAccessibleInterface* childAt(int x, int y) const override;
int indexOfChild(const QAccessibleInterface*) const override;
int childCount() const override;
QAccessibleInterface* focusChild() const override;
QAccessibleInterface* child(int index) const override;
static QAccessibleInterface* ifactory(const QString& key, QObject* o);
static QAccessibleInterface* ifactory(const QString& key, QObject* obj);
};
}