- ui.topicLabel->show();
- setContentsMargins(0,0,0,0);
- parent->setMinimumHeight(layout()->sizeHint().height() + 2*qApp->style()->pixelMetric(QStyle::PM_DockWidgetTitleBarButtonMargin));
+
+ connect(ui.topicLabel, SIGNAL(clickableActivated(Clickable)), SLOT(clickableActivated(Clickable)));
+
+ UiSettings s("TopicWidget");
+ s.notify("DynamicResize", this, SLOT(updateResizeMode()));
+ s.notify("ResizeOnHover", this, SLOT(updateResizeMode()));
+ updateResizeMode();
+
+ UiStyleSettings fs("Fonts");
+ fs.notify("UseCustomTopicWidgetFont", this, SLOT(setUseCustomFont(QVariant)));
+ fs.notify("TopicWidget", this, SLOT(setCustomFont(QVariant)));
+ if(fs.value("UseCustomTopicWidgetFont", false).toBool())
+ setCustomFont(fs.value("TopicWidget", QFont()));
+