Skip to content

Commit 0fd39f3

Browse files
committed
set default background
1 parent 4a454a9 commit 0fd39f3

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/Interface/Modules/Render/ViewScene.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ void ViewSceneDialog::configurationButtonClicked()
377377
}
378378

379379
//------------------------------------------------------------------------------
380-
void ViewSceneDialog::assignDefaultMeshColor()
380+
void ViewSceneDialog::assignBackgroundColor()
381381
{
382382
QColor bgColor = Qt::black;
383383
auto newColor = QColorDialog::getColor(bgColor, this, "Choose background color");

src/Interface/Modules/Render/ViewScene.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ namespace SCIRun {
8383
void viewAxisSelected(int index);
8484
void viewVectorSelected(int index);
8585
void configurationButtonClicked();
86-
void assignDefaultMeshColor();
86+
void assignBackgroundColor();
8787

8888
protected:
8989
virtual void closeEvent(QCloseEvent* evt) override;

src/Interface/Modules/Render/ViewSceneControlsDock.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ ViewSceneControlsDock::ViewSceneControlsDock(const QString& name, ViewSceneDialo
4949

5050
connect(orientationCheckBox_, SIGNAL(clicked(bool)), parent, SLOT(showOrientationChecked(bool)));
5151
connect(mouseControlComboBox_, SIGNAL(currentIndexChanged(int)), parent, SLOT(menuMouseControlChanged(int)));
52-
connect(setBackgroundColorPushButton_, SIGNAL(clicked()), parent, SLOT(assignDefaultMeshColor()));
52+
connect(setBackgroundColorPushButton_, SIGNAL(clicked()), parent, SLOT(assignBackgroundColor()));
53+
54+
setSampleColor(Qt::black);
5355

5456
WidgetStyleMixin::tabStyle(tabWidget);
5557
}

0 commit comments

Comments
 (0)