diff --git a/Telegram/SourceFiles/editor/editor_paint.cpp b/Telegram/SourceFiles/editor/editor_paint.cpp index 76f716a0d..99341756e 100644 --- a/Telegram/SourceFiles/editor/editor_paint.cpp +++ b/Telegram/SourceFiles/editor/editor_paint.cpp @@ -27,11 +27,6 @@ namespace { constexpr auto kMaxBrush = 25.; constexpr auto kMinBrush = 1.; -constexpr auto kViewStyle = "QGraphicsView {\ - background-color: transparent;\ - border: 0px\ - }"_cs; - std::shared_ptr EnsureScene( PhotoModifications &mods, const QSize &size) { @@ -62,7 +57,8 @@ Paint::Paint( _view->show(); _view->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); _view->setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); - _view->setStyleSheet(kViewStyle.utf8()); + _view->setFrameStyle(int(QFrame::NoFrame) | QFrame::Plain); + _view->viewport()->setAutoFillBackground(false); // Undo / Redo. controllers->undoController->performRequestChanges(