QPainter painter(this);
painter.setBackgroundMode(Qt::OpaqueMode);
+ // FIXME re-enable topic painting
+#ifndef SPUTDEV
QRect drawRect = rect();
QRect brect;
QString textPart;
painter.drawText(drawRect, Qt::AlignLeft|Qt::TextSingleLine, textPart, &brect);
drawRect.setLeft(brect.right());
}
+#endif
}
void TopicButton::setAndStyleText(const QString &text) {
setText(text); // this triggers a repaint event
+#ifndef SPUTDEV
styledText = QtUi::style()->styleString(Message::mircToInternal(text));
int height = 1;
foreach(QTextLayout::FormatRange fr, styledText.formats) {
height = QFontMetrics(qApp->font()).height();
setFixedHeight(height);
-
+#endif
// show topic in tooltip
setToolTip(tr("%1\n\nClick to edit!").arg(QAbstractButton::text()));
}