Replace style sheet in Editor::Paint

This commit is contained in:
Ilya Fedin 2022-04-30 06:39:42 +04:00 committed by John Preston
parent 2f2003c89b
commit 387914be31
1 changed files with 2 additions and 6 deletions

View File

@ -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<Scene> 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(