Esempio n. 1
0
static void familyChanged(struct fontDialog *f)
{
	LRESULT pos;
	BOOL selected;
	IDWriteFontFamily *family;
	IDWriteFont *font, *matchFont;
	DWRITE_FONT_WEIGHT weight;
	DWRITE_FONT_STYLE style;
	DWRITE_FONT_STRETCH stretch;
	UINT32 i, n;
	UINT32 matching;
	WCHAR *label;
	HRESULT hr;

	selected = cbGetCurSel(f->familyCombobox, &pos);
	if (!selected)		// on deselect, do nothing
		return;
	f->curFamily = pos;

	family = (IDWriteFontFamily *) cbGetItemData(f->familyCombobox, (WPARAM) (f->curFamily));

	// for the nearest style match
	// when we select a new family, we want the nearest style to the previously selected one to be chosen
	// this is how the Choose Font sample does it
	hr = family->GetFirstMatchingFont(
		f->weight,
		f->stretch,
		f->style,
		&matchFont);
	if (hr != S_OK)
		logHRESULT(L"error finding first matching font to previous style in font dialog", hr);
	// we can't just compare pointers; a "newly created" object comes out
	// the Choose Font sample appears to do this instead
	weight = matchFont->GetWeight();
	style = matchFont->GetStyle();
	stretch = matchFont->GetStretch();
	matchFont->Release();

	// TODO test mutliple streteches; all the fonts I have have only one stretch value?
	wipeStylesBox(f);
	n = family->GetFontCount();
	matching = 0;			// a safe/suitable default just in case
	for (i = 0; i < n; i++) {
		hr = family->GetFont(i, &font);
		if (hr != S_OK)
			logHRESULT(L"error getting font for filling styles box", hr);
		label = fontStyleName(f->fc, font);
		pos = cbAddString(f->styleCombobox, label);
		uiFree(label);
		cbSetItemData(f->styleCombobox, (WPARAM) pos, (LPARAM) font);
		if (font->GetWeight() == weight &&
			font->GetStyle() == style &&
			font->GetStretch() == stretch)
			matching = i;
	}

	// and now, load the match
	cbSetCurSel(f->styleCombobox, (WPARAM) matching);
	styleChanged(f);
}
Esempio n. 2
0
void RDLabel::changeEvent(QEvent *event)
{
  if(event->type() == QEvent::PaletteChange || event->type() == QEvent::StyleChange)
    emit styleChanged(event);

  QLabel::changeEvent(event);
}
Esempio n. 3
0
void StyleAdvanced::apply()
{
    m_style->setLineSpacing(ui->lineSpacing->value());

    Qt::Alignment vertical;
    switch(ui->verticalAlign->currentIndex()) {
    case 0: vertical = Qt::AlignTop; break;
    case 1: vertical = Qt::AlignVCenter; break;
    case 2: vertical = Qt::AlignBottom; break;
    default: break;
    }
    Qt::Alignment horizontal;
    switch(ui->horizontalAlign->currentIndex()) {
    case 0: horizontal = Qt::AlignLeft; break;
    case 1: horizontal = Qt::AlignHCenter; break;
    case 2: horizontal = Qt::AlignRight; break;
    default: break;
    }

    m_style->setAlignment(vertical | horizontal);
    m_style->setMargins(ui->marginL->value(),
                        ui->marginR->value(),
                        ui->marginV->value());
    emit styleChanged();
}
Esempio n. 4
0
QgsMessageBarItem *QgsMessageBarItem::setLevel( QgsMessageBar::MessageLevel level )
{
  mLevel = level;
  writeContent();
  emit styleChanged( mStyleSheet );
  return this;
}
Esempio n. 5
0
/*!
 * @brief LienSpec::setStyle
 * @param style Accepted linestyles are ("-", "--", ":", "-.")
 * \table
 * \header
 *  \o LineStyle
 *  \o Appearance
 * \row
 *  \o "-"
 *  \o A solid line
 * \row
 *  \o "--"
 *  \o A dashed line
 * \row
 *  \o ":"
 *  \o A dotted line
 * \row
 *  \o "-."
 *  \o A dot-dashed line
 *
 */
void LineSpec::setStyle(QString arg)
{
    if (m_style == arg) return;
    // TODO: Check style is valid in painter...
    m_style = arg;
    emit styleChanged(arg);
}
Esempio n. 6
0
void TextTools::setText(Text* te)
      {
      textStyles->blockSignals(true);
      _textElement = te;
      textStyles->clear();
      textStyles->addItem(tr("unstyled"));

      const QList<TextStyle>& ts = te->score()->style()->textStyles();

      int n = ts.size();
      for (int i = 1; i < n; ++i)                     // skip default style
            textStyles->addItem(ts[i].name());
      int idx = 0;
      if (te->styled())
            idx = te->textStyleType();
      textStyles->setCurrentIndex(idx);
      styleChanged(idx);
      Align align = _textElement->align();
      if (align & ALIGN_HCENTER)
            hcenterAlign->setChecked(true);
      else if (align & ALIGN_RIGHT)
            rightAlign->setChecked(true);
      else
            leftAlign->setChecked(true);

      if (align & ALIGN_BOTTOM)
            bottomAlign->setChecked(true);
      else if (align & ALIGN_BASELINE)
            baselineAlign->setChecked(true);
      else if (align & ALIGN_VCENTER)
            vcenterAlign->setChecked(true);
      else
            topAlign->setChecked(true);
      textStyles->blockSignals(false);
      }
Esempio n. 7
0
SettingsDialog::SettingsDialog(QWidget* parent, int flags) 
	: BaseWindow(OnlyCloseButton, NoResize, parent)
	, m_propertyMapper(new SettingsPropertyMapper(this))
	, editRssRule(NULL)
	, deleteRssRule(NULL)
{
	setupUi(this);
	previousFocuse = NULL;
	settings = QApplicationSettings::getInstance();
	rcon = RconWebService::getInstance();
	tracker = TorrentTracker::getInstance();
	FillDTTab();
	FillRestrictionTab();
	FillFilteringGroups();
	FillGeneralTab();
	FillHDDTab();
	FillWebUITab();
	SetupSchedullerTab();
	FillKeyMapTab();
	FillNetworkTab();
	FillRssTab();
	setupCustomWindow();
	QPushButton* applyButton = buttonBox->button(QDialogButtonBox::Apply);
	if (applyButton != NULL)
	{
		applyButton->setEnabled(false);
	}
	setupWindowIcons();
	
	StyleEngene* style = StyleEngene::getInstance();
	connect(style, SIGNAL(styleChanged()), this, SLOT(setupWindowIcons()));
	connect(m_propertyMapper.get(), SIGNAL(GotChanges()), SLOT(EnableApplyButton()));
	connect(m_propertyMapper.get(), SIGNAL(NoChanges()), SLOT(DisableApplyButton()));
}
Esempio n. 8
0
void QgsMessageBar::popItem( QgsMessageBarItem *item )
{
  Q_ASSERT( item );

  if ( item != mCurrentItem && !mItems.contains( item ) )
    return;

  if ( item == mCurrentItem )
  {
    if ( mCurrentItem )
    {
      QWidget *widget = mCurrentItem;
      mLayout->removeWidget( widget );
      mCurrentItem->hide();
      disconnect( mCurrentItem, SIGNAL( styleChanged( QString ) ), this, SLOT( setStyleSheet( QString ) ) );
      delete mCurrentItem;
      mCurrentItem = nullptr;
    }

    if ( !mItems.isEmpty() )
    {
      showItem( mItems.at( 0 ) );
    }
    else
    {
      hide();
    }
  }
  else
  {
    mItems.removeOne( item );
  }

  emit widgetRemoved( item );
}
KexiComboBoxDropDownButton::KexiComboBoxDropDownButton(QWidget *parent)
        : QToolButton(parent)
        , d(new Private)
{
    setAutoRaise(true);
    setArrowType(Qt::DownArrow);
    styleChanged();
}
Esempio n. 10
0
void LineGraph::setStyle(Qt::PenStyle style)
{
    if (m_style == style)
        return;

    m_style = style;
    emit styleChanged(style);
}
Esempio n. 11
0
ChatLineModel::ChatLineModel(QObject *parent)
    : MessageModel(parent)
{
    qRegisterMetaType<WrapList>("ChatLineModel::WrapList");
    qRegisterMetaTypeStreamOperators<WrapList>("ChatLineModel::WrapList");

    connect(QtUi::style(), SIGNAL(changed()), SLOT(styleChanged()));
}
Esempio n. 12
0
void Text::setScore(Score* s)
      {
      if (s == score())
            return;
      Element::setScore(s);
      // TODO: handle custom text styles
      styleChanged();
      }
Esempio n. 13
0
static INT_PTR CALLBACK fontDialogDlgProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
	struct fontDialog *f;

	f = (struct fontDialog *) GetWindowLongPtrW(hwnd, DWLP_USER);
	if (f == NULL) {
		if (uMsg == WM_INITDIALOG) {
			f = beginFontDialog(hwnd, lParam);
			SetWindowLongPtrW(hwnd, DWLP_USER, (LONG_PTR) f);
			return TRUE;
		}
		return FALSE;
	}

	switch (uMsg) {
	case WM_COMMAND:
		SetWindowLongPtrW(f->hwnd, DWLP_MSGRESULT, 0);		// just in case
		switch (LOWORD(wParam)) {
		case IDOK:
		case IDCANCEL:
			if (HIWORD(wParam) != BN_CLICKED)
				return FALSE;
			return tryFinishDialog(f, wParam);
		case rcFontFamilyCombobox:
			if (HIWORD(wParam) == CBN_SELCHANGE) {
				familyChanged(f);
				return TRUE;
			}
			if (HIWORD(wParam) == CBN_EDITCHANGE) {
				familyEdited(f);
				return TRUE;
			}
			return FALSE;
		case rcFontStyleCombobox:
			if (HIWORD(wParam) == CBN_SELCHANGE) {
				styleChanged(f);
				return TRUE;
			}
			if (HIWORD(wParam) == CBN_EDITCHANGE) {
				styleEdited(f);
				return TRUE;
			}
			return FALSE;
		case rcFontSizeCombobox:
			if (HIWORD(wParam) == CBN_SELCHANGE) {
				sizeChanged(f);
				return TRUE;
			}
			if (HIWORD(wParam) == CBN_EDITCHANGE) {
				sizeEdited(f);
				return TRUE;
			}
			return FALSE;
		}
		return FALSE;
	}
	return FALSE;
}
MarkerLineItem::MarkerLineItem(qreal sceneWidth, QGraphicsItem *parent) :
    QGraphicsObject(parent),
    _boundingRect(0, 0, sceneWidth, 1),
    _chatLine(0)
{
    setVisible(false);
    setZValue(8);
    styleChanged(); // init brush and height
}
Esempio n. 15
0
MarkerLineItem::MarkerLineItem(qreal sceneWidth, QGraphicsItem* parent)
    : QGraphicsObject(parent)
    , _boundingRect(0, 0, sceneWidth, 1)
    , _chatLine(nullptr)
{
    setVisible(false);
    setZValue(8);
    styleChanged();  // init brush and height
    connect(QtUi::style(), &UiStyle::changed, this, &MarkerLineItem::styleChanged);
}
Esempio n. 16
0
void Ottava::read(XmlReader& e)
      {
      eraseSpannerSegments();
      if (score()->mscVersion() < 301)
            e.addSpanner(e.intAttribute("id", -1), this);
      while (e.readNextStartElement())
            readProperties(e);
      if (_ottavaType != OttavaType::OTTAVA_8VA || _numbersOnly != propertyDefault(Pid::NUMBERS_ONLY).toBool())
            styleChanged();
      }
Esempio n. 17
0
void QDeclarativeText::setStyle(QDeclarativeText::TextStyle style)
{
    Q_D(QDeclarativeText);
    if (d->style == style)
        return;

    d->style = style;
    d->markImgDirty();
    emit styleChanged(d->style);
}
void QgsLayerStylingWidget::apply()
{
  if ( !mCurrentLayer )
    return;

  disconnect( mCurrentLayer, &QgsMapLayer::styleChanged, this, &QgsLayerStylingWidget::updateCurrentWidgetLayer );

  QString undoName = QStringLiteral( "Style Change" );

  QWidget *current = mWidgetStack->mainPanel();

  bool styleWasChanged = false;
  if ( QgsLabelingWidget *widget = qobject_cast<QgsLabelingWidget *>( current ) )
  {
    widget->apply();
    styleWasChanged = true;
    undoName = QStringLiteral( "Label Change" );
  }
  if ( QgsPanelWidgetWrapper *wrapper = qobject_cast<QgsPanelWidgetWrapper *>( current ) )
  {
    if ( QgsRendererPropertiesDialog *widget = qobject_cast<QgsRendererPropertiesDialog *>( wrapper->widget() ) )
    {
      widget->apply();
      QgsVectorLayer *layer = qobject_cast<QgsVectorLayer *>( mCurrentLayer );
      QgsRendererAbstractMetadata *m = QgsApplication::rendererRegistry()->rendererMetadata( layer->renderer()->type() );
      undoName = QStringLiteral( "Style Change - %1" ).arg( m->visibleName() );
      styleWasChanged = true;
    }
  }
  else if ( QgsRasterTransparencyWidget *widget = qobject_cast<QgsRasterTransparencyWidget *>( current ) )
  {
    widget->apply();
    styleWasChanged = true;
  }
  else if ( qobject_cast<QgsRasterHistogramWidget *>( current ) )
  {
    mRasterStyleWidget->apply();
    styleWasChanged = true;
  }
  else if ( QgsMapLayerConfigWidget *widget = qobject_cast<QgsMapLayerConfigWidget *>( current ) )
  {
    widget->apply();
    styleWasChanged = true;
  }

  pushUndoItem( undoName );

  if ( styleWasChanged )
  {
    emit styleChanged( mCurrentLayer );
    QgsProject::instance()->setDirty( true );
    mCurrentLayer->triggerRepaint();
  }
  connect( mCurrentLayer, &QgsMapLayer::styleChanged, this, &QgsLayerStylingWidget::updateCurrentWidgetLayer );
}
Esempio n. 19
0
void Ottava::undoChangeProperty(Pid id, const QVariant& v, PropertyFlags ps)
      {
      if (id == Pid::OTTAVA_TYPE || id == Pid::NUMBERS_ONLY) {
            TextLineBase::undoChangeProperty(id, v, ps);
            styleChanged();   // these properties may change style settings
            MuseScoreCore::mscoreCore->updateInspector();
            }
      else {
            TextLineBase::undoChangeProperty(id, v, ps);
            }
      }
Esempio n. 20
0
KexiTableViewHeader::KexiTableViewHeader(QWidget * parent)
        : Q3Header(parent)
        , m_lastToolTipSection(-1)
        , m_selectionBackgroundColor(qApp->palette().highlight().color())
        , m_selectedSection(-1)
        , m_styleChangeEnabled(true)
{
    styleChanged();
    installEventFilter(this);
    connect(this, SIGNAL(sizeChange(int, int, int)),
            this, SLOT(slotSizeChange(int, int, int)));
}
Esempio n. 21
0
void SPIMB040OptionsWidget::readSettings(ProgramOptions *options)
{
    QDir().mkpath(ProgramOptions::getInstance()->getHomeQFDirectory()+"/acq_templates/");
    ui->edtOptTemplatesDir->setText(options->getConfigValue("spimb040/templates_directory", ProgramOptions::getInstance()->getHomeQFDirectory()+"/acq_templates/").toString());
    ui->edtOptScriptsDir->setText(options->getConfigValue("spimb040/script_directory", ProgramOptions::getInstance()->getHomeQFDirectory()+"/acquisitionScripts/").toString());
    ui->edtOptSetupDir->setText(options->getConfigValue("spimb040/optsetup_directory", options->getGlobalConfigFileDirectory()).toString());
    ui->edtOptSetupConfigDir->setText(options->getConfigValue("spimb040/optsetup_config_directory", options->getConfigFileDirectory()+"/plugins/ext_spimb040/").toString());
    ui->edtOptSetupConfigDirReadonly->setText(options->getConfigValue("spimb040/optsetup_config_directory_readonly", options->getGlobalConfigFileDirectory()).toString());
    ui->cmbStyle->setCurrentIndex(ui->cmbStyle->findText(options->getConfigValue("spimb040/style", ProgramOptions::getInstance()->getStyle()).toString(), Qt::MatchExactly ));
    ui->cmbStylesheet->setCurrentIndex(ui->cmbStylesheet->findText(options->getConfigValue("spimb040/stylesheet", ProgramOptions::getInstance()->getStylesheet()).toString(), Qt::MatchExactly ));
    emit styleChanged(getStyle(), getStylesheet());
}
Esempio n. 22
0
void SPIMB040OptionsWidget::on_cmbStylesheet_currentIndexChanged( int /*index*/ ) {
//    QString fn=ui->cmbStylesheet->itemData(index).toString();
//    QFile f(fn);
//    QString qss="";
//    if (f.open(QFile::ReadOnly)) {
//        QTextStream s(&f);
//        qss=s.readAll();
//    }
//    this->setStyleSheet(qss);

    emit styleChanged(getStyle(), getStylesheet());
}
Esempio n. 23
0
ParagraphSettingsDialog::ParagraphSettingsDialog(TextTool *tool, KoTextEditor *editor, QWidget *parent)
    : KoDialog(parent)
    , m_tool(tool)
    , m_editor(editor)
    , m_styleChanged(false)
{
    setCaption(i18n("Paragraph Format"));
    setModal(true);
    setButtons(Ok | Cancel | Apply);
    setDefaultButton(Ok);

    m_paragraphGeneral = new ParagraphGeneral;
    m_paragraphGeneral->hideStyleName(true);
    setMainWidget(m_paragraphGeneral);

    connect(this, SIGNAL(applyClicked()), this, SLOT(slotApply()));
    connect(this, SIGNAL(okClicked()), this, SLOT(slotOk()));
    initTabs();

    // Do this after initTabs so it doesn't cause signals prematurely
    connect(m_paragraphGeneral, SIGNAL(styleChanged()), this, SLOT(styleChanged()));
}
void QQuickMapboxGL::setStyle(const QString &styleUrl)
{
    if (m_style == styleUrl) {
        return;
    }

    m_style = styleUrl;

    m_syncState |= StyleNeedsSync;
    update();

    emit styleChanged();
}
Esempio n. 25
0
void QgsMessageBar::showItem( QgsMessageBarItem *item )
{
  Q_ASSERT( item );

  if ( mCurrentItem != 0 )
    disconnect( mCurrentItem, SIGNAL( styleChanged( QString ) ), this, SLOT( setStyleSheet( QString ) ) );

  if ( item == mCurrentItem )
    return;

  if ( mItems.contains( item ) )
    mItems.removeOne( item );

  if ( mCurrentItem )
  {
    mItems.prepend( mCurrentItem );
    mLayout->removeWidget( mCurrentItem );
    mCurrentItem->hide();
  }

  mCurrentItem = item;
  mLayout->addWidget( item, 0, 1, 1, 1 );
  mCurrentItem->show();

  if ( item->duration() > 0 )
  {
    mCountProgress->setRange( 0, item->duration() );
    mCountProgress->setValue( item->duration() );
    mCountProgress->setVisible( true );
    mCountdownTimer->start();
  }

  connect( mCurrentItem, SIGNAL( styleChanged( QString ) ), this, SLOT( setStyleSheet( QString ) ) );
  setStyleSheet( item->getStyleSheet() );
  show();

  emit widgetAdded( item );
}
Esempio n. 26
0
void UnitsClassWidget::changeLineColor()
{
  QColor TmpColor = QColorDialog::getColor(m_LineColor,this);

  if (TmpColor.isValid())
  {
    m_LineColor = TmpColor;
    ui->LineColorButton->setStyleSheet(QString(m_ColorButtonStyleSheet).arg(m_LineColor.name()));

    openfluid::base::RunContextManager::instance()->setProjectConfigValue("builder.spatial.unitsclasses",
                                                                          m_ClassName+".linecolor",m_LineColor.name());
    emit styleChanged(m_ClassName);
  }
}
QQuickControlSettings::QQuickControlSettings(QQmlEngine *engine)
{
    // First, register all style paths in the default style location.
    QDir dir;
    const QString defaultStyle = defaultStyleName();
    dir.setPath(relativeStyleImportPath(engine, defaultStyle));
    dir.setFilter(QDir::Dirs | QDir::NoDotAndDotDot);
    foreach (const QString &styleDirectory, dir.entryList()) {
        findStyle(engine, styleDirectory);
    }

    m_name = styleImportName();

    // If the style name is a path..
    const QString styleNameFromEnvVar = qgetenv("QT_QUICK_CONTROLS_STYLE");
    if (QFile::exists(styleNameFromEnvVar)) {
        StyleData styleData;
        styleData.m_styleDirPath = styleNameFromEnvVar;
        m_styleMap[m_name] = styleData;
    }

    // Then check if the style the user wanted is known to us. Otherwise, use the fallback style.
    if (m_styleMap.contains(m_name)) {
        m_path = m_styleMap.value(m_name).m_styleDirPath;
    } else {
        QString unknownStyle = m_name;
        m_name = defaultStyle;
        m_path = m_styleMap.value(defaultStyle).m_styleDirPath;
        qWarning() << "WARNING: Cannot find style" << unknownStyle << "- fallback:" << styleFilePath();
    }

    // Can't really do anything about this failing here, so don't bother checking...
    resolveCurrentStylePath();

    connect(this, SIGNAL(styleNameChanged()), SIGNAL(styleChanged()));
    connect(this, SIGNAL(stylePathChanged()), SIGNAL(styleChanged()));
}
Esempio n. 28
0
FontDia::FontDia(KoTextEditor *editor, QWidget* parent)
        : KDialog(parent)
        , m_editor(editor)
        , m_styleChanged(false)
{
    m_initialFormat = m_editor->charFormat();

    setCaption(i18n("Select Font"));
    setModal(true);
    setButtons(Ok | Cancel | Reset | Apply);
    setDefaultButton(Ok);

    m_characterGeneral = new CharacterGeneral(this);
    m_characterGeneral->hideStyleName(true);
    setMainWidget(m_characterGeneral);

    connect(this, SIGNAL(applyClicked()), this, SLOT(slotApply()));
    connect(this, SIGNAL(okClicked()), this, SLOT(slotOk()));
    connect(this, SIGNAL(resetClicked()), this, SLOT(slotReset()));
    initTabs();

    // Do this after initTabs so it doesn't cause signals prematurely
    connect(m_characterGeneral, SIGNAL(styleChanged()), this, SLOT(styleChanged()));
}
Esempio n. 29
0
void StyleEngene::setStyle(QString internalName)
{
	if(_styleMap.contains(internalName))
	{
		_currentStyle = _styleMap[internalName];
		m_iconCache.clear();
	}
	else
	{
		qCritical() << "No style found";
		return;
	}

	initIcons();
	loadStyleSheet(StaticHelpers::CombinePathes(_currentStyle.rootPath, "style.qss"));
	emit styleChanged();
}
Esempio n. 30
0
void Ottava::updateStyledProperties()
      {
      Q_ASSERT(int(OttavaType::OTTAVA_22MB) - int(OttavaType::OTTAVA_8VA) == 5);

      static const Sid ss[24] = {
            Sid::ottava8VAPlacement,
            Sid::ottava8VAnoText,
            Sid::ottava8VBPlacement,
            Sid::ottava8VBnoText,
            Sid::ottava15MAPlacement,
            Sid::ottava15MAnoText,
            Sid::ottava15MBPlacement,
            Sid::ottava15MBnoText,
            Sid::ottava22MAPlacement,
            Sid::ottava22MAnoText,
            Sid::ottava22MBPlacement,
            Sid::ottava22MBnoText,

            Sid::ottava8VAPlacement,
            Sid::ottava8VAText,
            Sid::ottava8VBPlacement,
            Sid::ottava8VBText,
            Sid::ottava15MAPlacement,
            Sid::ottava15MAText,
            Sid::ottava15MBPlacement,
            Sid::ottava15MBText,
            Sid::ottava22MAPlacement,
            Sid::ottava22MAText,
            Sid::ottava22MBPlacement,
            Sid::ottava22MBText,
            };

      // switch right substyles depending on _ottavaType and _numbersOnly

      int idx    = int(_ottavaType) * 2 + (_numbersOnly ? 0 : 12);
      _ottavaStyle[0].sid = ss[idx];         // PLACEMENT
      _ottavaStyle[2].sid = ss[idx+1];       // BEGIN_TEXT
      _ottavaStyle[3].sid = ss[idx+1];       // CONTINUE_TEXT
      if (isStyled(Pid::PLACEMENT))
            _ottavaStyle[4].sid = score()->styleI(ss[idx]) == int(Placement::ABOVE) ? Sid::ottavaHookAbove : Sid::ottavaHookBelow;
      else
            _ottavaStyle[4].sid = placeAbove() ? Sid::ottavaHookAbove : Sid::ottavaHookBelow;
      styleChanged();   // this changes all styled properties with flag STYLED
      MuseScoreCore::mscoreCore->updateInspector();
      }