OSDN Git Service

remove unused and internal QAccessibleToolButton::actionCount()
authorIvailo Monev <xakepa10@gmail.com>
Sun, 11 Oct 2020 05:38:23 +0000 (08:38 +0300)
committerIvailo Monev <xakepa10@gmail.com>
Sun, 11 Oct 2020 05:38:23 +0000 (08:38 +0300)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/plugins/accessible/widgets/simplewidgets.cpp
src/plugins/accessible/widgets/simplewidgets.h

index de0d4b8..ab5886f 100644 (file)
@@ -409,26 +409,6 @@ QString QAccessibleToolButton::text(Text t, int child) const
 /*!
     \internal
 
-    Returns the number of actions which is 0, 1, or 2, in part
-    depending on \a child.
-*/
-int QAccessibleToolButton::actionCount(int child) const
-{
-    // each subelement has one action
-    if (child)
-        return isSplitButton() ? 1 : 0;
-    int ac = widget()->focusPolicy() != Qt::NoFocus ? 1 : 0;
-    // button itself has two actions if a menu button
-#ifndef QT_NO_MENU
-    return ac + (toolButton()->menu() ? 2 : 1);
-#else
-    return ac + 1;
-#endif
-}
-
-/*!
-    \internal
-
     If \a text is \c Name, then depending on the \a child or the \a
     action, an action text is returned. This is a translated string
     which in English is one of "Press", "Open", or "Set Focus". If \a
index cd694d5..d26ba00 100644 (file)
@@ -93,7 +93,6 @@ public:
 
     QString text(Text t, int child) const;
 
-    int actionCount(int child) const;
     QString actionText(int action, Text text, int child) const;
     bool doAction(int action, int child, const QVariantList &params);