[Bugfix]Spreadsheet: fix multi-screen management of QtColorPicker

+ set parent when instantiating
This commit is contained in:
0penBrain
2022-10-13 17:47:40 +02:00
committed by Chris Hennes
parent 5fcc1c3d03
commit 0a12d435a2
2 changed files with 6 additions and 5 deletions

View File

@@ -82,7 +82,7 @@ void Workbench::activated()
if (!fgList.empty())
foregroundColor = fgList[0];
else {
foregroundColor = new QtColorPicker();
foregroundColor = new QtColorPicker(bar);
foregroundColor->setObjectName(QString::fromLatin1("Spreadsheet_ForegroundColor"));
foregroundColor->setStandardColors();
foregroundColor->setCurrentColor(palette.color(QPalette::WindowText));
@@ -97,7 +97,7 @@ void Workbench::activated()
if (!bgList.empty())
backgroundColor = bgList[0];
else {
backgroundColor = new QtColorPicker();
backgroundColor = new QtColorPicker(bar);
backgroundColor->setObjectName(QString::fromLatin1("Spreadsheet_BackgroundColor"));
backgroundColor->setStandardColors();
backgroundColor->setCurrentColor(palette.color(QPalette::Base));