QAction::setIconText() breaks the feature that QAction::iconText() is returning text() when the iconText is empty.
BUG: 391002
chehrlic |
Frameworks |
QAction::setIconText() breaks the feature that QAction::iconText() is returning text() when the iconText is empty.
BUG: 391002
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
src/kacceleratormanager.cpp | ||
---|---|---|
792 ↗ | (On Diff #29556) | What happens when iconText.isEmpty()? |
src/kacceleratormanager.cpp | ||
---|---|---|
792 ↗ | (On Diff #29556) | Qt returns QAction::text() when QAction::iconText() is empty. Apparently Qt also strips some text, so to check if there was no iconText(), we need this weird check instead of using isEmpty(). |