| 160 | } |
| 161 | |
| 162 | void DiagramSettings::Private::init() |
| 163 | { |
| 164 | ui->setupUi(qq); |
| 165 | #ifdef Q_OS_LINUX |
| 166 | ui->diagramBackground->setStyle(QStyleFactory::create(QStringLiteral("cleanlooks"))); |
| 167 | #endif |
| 168 | |
| 169 | connect(ui->threeDSelector, SIGNAL(toggled(bool)), this, SLOT(changeThreeD())); |
| 170 | connect(ui->diagramBackground, SIGNAL(clicked()), this, SLOT(changeBackgroundColor())); |
| 171 | connect(ui->visibleBtn, SIGNAL(toggled(bool)), this, SLOT(changeBackgroundVisibility())); |
| 172 | connect(ui->barHeightInput, SIGNAL(valueChanged(int)), this, SLOT(changeThreeD())); |
| 173 | connect(ui->autoGradient, SIGNAL(toggled(bool)), this, SLOT(changeAutoGradient())); |
| 174 | |
| 175 | qq->refreshSettings(); |
| 176 | } |
| 177 | |
| 178 | void DiagramSettings::Private::setThreeDData(const AbstractThreeDAttributes &attr) |
| 179 | { |
no test coverage detected