X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Ftopicbutton.cpp;fp=src%2Fqtui%2Ftopicbutton.cpp;h=2030a5413a38160e1e6ae4331a76a051d06f3d11;hp=4c26bfc3372d075dd7bb312b9a44752530801156;hb=858cba7fac9928549219de070397be65e1b92cde;hpb=6fe30667a4a4747e8fad048dad499f7d2390b044 diff --git a/src/qtui/topicbutton.cpp b/src/qtui/topicbutton.cpp index 4c26bfc3..2030a541 100644 --- a/src/qtui/topicbutton.cpp +++ b/src/qtui/topicbutton.cpp @@ -45,6 +45,8 @@ void TopicButton::paintEvent(QPaintEvent *event) { QPainter painter(this); painter.setBackgroundMode(Qt::OpaqueMode); + // FIXME re-enable topic painting +#ifndef SPUTDEV QRect drawRect = rect(); QRect brect; QString textPart; @@ -56,6 +58,7 @@ void TopicButton::paintEvent(QPaintEvent *event) { painter.drawText(drawRect, Qt::AlignLeft|Qt::TextSingleLine, textPart, &brect); drawRect.setLeft(brect.right()); } +#endif } void TopicButton::setAndStyleText(const QString &text) { @@ -64,6 +67,7 @@ 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) { @@ -75,7 +79,7 @@ void TopicButton::setAndStyleText(const QString &text) { height = QFontMetrics(qApp->font()).height(); setFixedHeight(height); - +#endif // show topic in tooltip setToolTip(tr("%1\n\nClick to edit!").arg(QAbstractButton::text())); }