From b1bc4c5d537c4069969a0e1d833ebb7f92c56740 Mon Sep 17 00:00:00 2001 From: Unknown Date: Fri, 17 Mar 2017 11:00:42 +0100 Subject: [PATCH] Use colorLineEdit for heightmap color too --- mainwindow.cpp | 12 ------------ mainwindow.h | 2 -- mainwindow.ui | 48 ++++++++++++++++++++++++++++++++---------------- 3 files changed, 32 insertions(+), 30 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 9e5c80d..9248f63 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -906,18 +906,6 @@ void MainWindow::on_path_OutputImage_textChanged() ui->label_preview->setText(tr("preview: %1").arg(getOutputFileName())); } -void MainWindow::on_selectHeightmapColor_clicked() -{ - const QColorDialog::ColorDialogOptions options = QFlag(QColorDialog::DontUseNativeDialog); - const QColor color = QColorDialog::getColor(ui->colorHeightmap->text(), this, tr("select color"),options); - - if (color.isValid()) { - ui->colorHeightmap->setText(color.name()); - ui->colorHeightmap->setPalette(QPalette(color)); - //ui->lineEdit_bgcolor->setAutoFillBackground(true); - } -} - void MainWindow::on_actionNew_Profile_triggered() { bool ok; diff --git a/mainwindow.h b/mainwindow.h index 5177c15..9ddf215 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -81,8 +81,6 @@ private slots: void on_path_OutputImage_textChanged(); - void on_selectHeightmapColor_clicked(); - void on_button_cancel_clicked(); void on_actionNew_Profile_triggered(); diff --git a/mainwindow.ui b/mainwindow.ui index bcc5ee1..f9b9d0c 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -936,7 +936,7 @@ Nodes higher than this level will not be drawn. This can be used to avoid floati - + false @@ -3330,8 +3330,8 @@ p, li { white-space: pre-wrap; } forward() - 749 - 110 + 859 + 120 749 @@ -3346,8 +3346,8 @@ p, li { white-space: pre-wrap; } zoomIn() - 847 - 100 + 959 + 120 846 @@ -3362,8 +3362,8 @@ p, li { white-space: pre-wrap; } zoomOut() - 943 - 108 + 1059 + 120 943 @@ -3378,12 +3378,12 @@ p, li { white-space: pre-wrap; } setEnabled(bool) - 522 - 160 + 1060 + 241 - 522 - 104 + 659 + 120 @@ -3398,8 +3398,8 @@ p, li { white-space: pre-wrap; } 151 - 708 - 110 + 859 + 120 @@ -3410,8 +3410,8 @@ p, li { white-space: pre-wrap; } home() - 616 - 118 + 759 + 120 616 @@ -3419,12 +3419,28 @@ p, li { white-space: pre-wrap; } + + selectHeightmapColor + clicked() + colorHeightmap + selectColor() + + + 434 + 291 + + + 379 + 292 + + + - +