Commit 68521209 authored by Clément Fauconnier's avatar Clément Fauconnier

missing fix on pickFont + DontUseNativeDialog on pickColor

parent f2b72c44
......@@ -322,7 +322,7 @@ void UBGraphicsTextItemDelegate::pickFont()
{
if (mDelegated && mDelegated->scene() && mDelegated->scene()->views().size() > 0)
{
QFontDialog fontDialog(delegated()->textCursor().charFormat().font(), mDelegated->scene()->views().at(0));
QFontDialog fontDialog(delegated()->textCursor().charFormat().font(), static_cast<QGraphicsView*>(UBApplication::boardController->controlView()));
customize(fontDialog);
if (fontDialog.exec())
......@@ -357,6 +357,7 @@ void UBGraphicsTextItemDelegate::pickColor()
{
QColorDialog colorDialog(delegated()->defaultTextColor(), static_cast<QGraphicsView*>(UBApplication::boardController->controlView()));
colorDialog.setWindowTitle(tr("Text Color"));
colorDialog.setOption(QColorDialog::DontUseNativeDialog);
if (UBSettings::settings()->isDarkBackground())
{
colorDialog.setStyleSheet("background-color: white;");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment