[Bugfix]Spreadsheet: fix multi-screen management of QtColorPicker
+ set parent when instantiating
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user