Remove unused function.

Change-Id: I197ca88e04a68dca0ea819d6e335a02607e597aa
Reviewed-by: Trust Me
(cherry picked from commit 1a98c473fbcbb6a9edf1b7e42babbad7d901edb4)
This commit is contained in:
Jason McDonald 2011-04-19 14:09:44 +10:00 committed by Rohan McGovern
parent 6bc4d8b58f
commit 7ef434c3a0

View File

@ -326,48 +326,6 @@ QString eventName(const int ev)
}
}
static QString stateNames(int state)
{
QString stateString;
if (state == 0x00000000) stateString += " Normal";
if (state & 0x00000001) stateString += " Unavailable";
if (state & 0x00000002) stateString += " Selected";
if (state & 0x00000004) stateString += " Focused";
if (state & 0x00000008) stateString += " Pressed";
if (state & 0x00000010) stateString += " Checked";
if (state & 0x00000020) stateString += " Mixed";
if (state & 0x00000040) stateString += " ReadOnly";
if (state & 0x00000080) stateString += " HotTracked";
if (state & 0x00000100) stateString += " DefaultButton";
if (state & 0x00000200) stateString += " Expanded";
if (state & 0x00000400) stateString += " Collapsed";
if (state & 0x00000800) stateString += " Busy";
if (state & 0x00001000) stateString += " Floating";
if (state & 0x00002000) stateString += " Marqueed";
if (state & 0x00004000) stateString += " Animated";
if (state & 0x00008000) stateString += " Invisible";
if (state & 0x00010000) stateString += " Offscreen";
if (state & 0x00020000) stateString += " Sizeable";
if (state & 0x00040000) stateString += " Moveable";
if (state & 0x00080000) stateString += " SelfVoicing";
if (state & 0x00100000) stateString += " Focusable";
if (state & 0x00200000) stateString += " Selectable";
if (state & 0x00400000) stateString += " Linked";
if (state & 0x00800000) stateString += " Traversed";
if (state & 0x01000000) stateString += " MultiSelectable";
if (state & 0x02000000) stateString += " ExtSelectable";
if (state & 0x04000000) stateString += " AlertLow";
if (state & 0x08000000) stateString += " AlertMedium";
if (state & 0x10000000) stateString += " AlertHigh";
if (state & 0x20000000) stateString += " Protected";
if (state & 0x3fffffff) stateString += " Valid";
if (stateString.isEmpty())
stateString = "Unknown state " + QString::number(state);
return stateString;
}
QAccessible::State state(QWidget * const widget)
{
QAccessibleInterface *iface = QAccessible::queryAccessibleInterface(widget);