diff options
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/list/ListWindow.cpp | 4 | ||||
| -rw-r--r-- | src/modules/list/ListWindow.h | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/list/ListWindow.cpp b/src/modules/list/ListWindow.cpp index 11366c444..773f1bf22 100644 --- a/src/modules/list/ListWindow.cpp +++ b/src/modules/list/ListWindow.cpp @@ -133,7 +133,9 @@ QSize ChannelTreeWidgetItemDelegate::sizeHint( const QStyleOptionViewItem &sovIt case 2: default: //topic - return QSize(fm.width(KviMircCntrl::stripControlBytes(item->itemData()->m_szTopic)), iHeight); + if(item->itemData()->m_szStrippedTopic.isEmpty()) + item->itemData()->m_szStrippedTopic = KviMircCntrl::stripControlBytes(item->itemData()->m_szTopic); + return QSize(fm.width(item->itemData()->m_szStrippedTopic), iHeight); break; } //make gcc happy diff --git a/src/modules/list/ListWindow.h b/src/modules/list/ListWindow.h index 73c497a29..6decc0f8f 100644 --- a/src/modules/list/ListWindow.h +++ b/src/modules/list/ListWindow.h @@ -62,6 +62,7 @@ protected: QString m_szChan; QString m_szUsers; QString m_szTopic; + QString m_szStrippedTopic; }; class ChannelTreeWidgetItem : public QTreeWidgetItem |
