Replace style sheet in Editor::Paint
This commit is contained in:
parent
2f2003c89b
commit
387914be31
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue