Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 4017195d authored by Boudewijn Rempt's avatar Boudewijn Rempt

Squeezed combobo: show the unsqueezed text as a tooltip

CCBUG:415117
(cherry picked from commit dd1f4a13f60b8958d960120c89f52e89ee186e3b)
parent d91db5f0
......@@ -103,12 +103,14 @@ void KisSqueezedComboBox::insertSqueezedItem(const QString& newItem, int index,
{
m_originalItems[index] = newItem;
QComboBox::insertItem(index, squeezeText(newItem, this), userData);
setItemData(index, newItem, Qt::ToolTipRole);
}
void KisSqueezedComboBox::insertSqueezedItem(const QIcon &icon, const QString &newItem, int index, QVariant userData)
{
m_originalItems[index] = newItem;
QComboBox::insertItem(index, icon, squeezeText(newItem, this), userData);
setItemData(index, newItem, Qt::ToolTipRole);
}
void KisSqueezedComboBox::addSqueezedItem(const QString& newItem, QVariant userData)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment