painter.setBackgroundMode(Qt::OpaqueMode);
// FIXME re-enable topic painting
-#ifndef SPUTDEV
+ /*
QRect drawRect = rect().adjusted(offset, 0, 0, 0);
QRect brect;
QString textPart;
drawRect.setLeft(brect.right());
}
textWidth = brect.right();
-#endif
+ */
}
void TopicLabel::setText(const QString &text) {
offset = 0;
update();
-#ifndef SPUTDEV
+ /* FIXME SPUTDEV reenable
styledContents = QtUi::style()->styleString(Message::mircToInternal(text));
int height = 1;
foreach(QTextLayout::FormatRange fr, styledContents.formatList) {
height = QFontMetrics(qApp->font()).height();
// setFixedHeight(height);
-#endif
+ */
// show topic in tooltip
}
}
void TopicLabel::mouseDoubleClickEvent(QMouseEvent *event) {
-#ifndef SPUTDEV
+ /* FIXME SPUTDEV reenable
event->accept();
if(textPartOffset.isEmpty())
return;
if(regex.indexIn(word) != -1) {
QDesktopServices::openUrl(QUrl(word));
}
-#endif
+ */
}