- // FIXME remove with protocol v11
- if(!(Client::coreFeatures() & Quassel::SynchronizedMarkerLine)) {
- ui.autoMarkerLine->setEnabled(false);
- ui.autoMarkerLine->setChecked(true);
- ui.autoMarkerLine->setToolTip(tr("You need at 0.6 quasselcore to use this feature"));
- }
+ // Handle UI dependent on core feature flags here
+ // FIXME remove with protocol v11
+ if (!Client::isCoreFeatureEnabled(Quassel::Feature::SynchronizedMarkerLine)) {
+ ui.autoMarkerLine->setEnabled(false);
+ ui.autoMarkerLine->setChecked(true);
+ ui.autoMarkerLine->setToolTip(tr("You need at least version 0.6 of Quassel Core to use this feature"));
+ }
+ if (!Client::isCoreFeatureEnabled(Quassel::Feature::SenderPrefixes)) {
+ // Sender prefixes are not supported, disallow toggling
+ ui.senderPrefixComboBox->setEnabled(false);
+ // Split up the message to allow re-using translations:
+ // [Original tool-tip]
+ // [Bold 'does not support feature' message]
+ // [Specific version needed and feature details]
+ ui.senderPrefixComboBox->setToolTip(
+ QString("<b>%2</b><br/>%3").arg(
+ tr("Your Quassel core does not support this feature"),
+ tr("You need a Quassel core v0.13.0 or newer in order to show sender "
+ "modes before nicknames.")));
+ }
+ initAutoWidgets();
+ initSenderPrefixComboBox();
+}
+