Use colorLineEdit for heightmap color too
parent
0f8fb0c5b7
commit
b1bc4c5d53
|
@ -906,18 +906,6 @@ void MainWindow::on_path_OutputImage_textChanged()
|
||||||
ui->label_preview->setText(tr("preview: %1").arg(getOutputFileName()));
|
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()
|
void MainWindow::on_actionNew_Profile_triggered()
|
||||||
{
|
{
|
||||||
bool ok;
|
bool ok;
|
||||||
|
|
|
@ -81,8 +81,6 @@ private slots:
|
||||||
|
|
||||||
void on_path_OutputImage_textChanged();
|
void on_path_OutputImage_textChanged();
|
||||||
|
|
||||||
void on_selectHeightmapColor_clicked();
|
|
||||||
|
|
||||||
void on_button_cancel_clicked();
|
void on_button_cancel_clicked();
|
||||||
|
|
||||||
void on_actionNew_Profile_triggered();
|
void on_actionNew_Profile_triggered();
|
||||||
|
|
|
@ -936,7 +936,7 @@ Nodes higher than this level will not be drawn. This can be used to avoid floati
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="2" column="1">
|
<item row="2" column="1">
|
||||||
<widget class="QLineEdit" name="colorHeightmap">
|
<widget class="ColorLineEdit" name="colorHeightmap">
|
||||||
<property name="enabled">
|
<property name="enabled">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
|
@ -3330,8 +3330,8 @@ p, li { white-space: pre-wrap; }
|
||||||
<slot>forward()</slot>
|
<slot>forward()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel">
|
<hint type="sourcelabel">
|
||||||
<x>749</x>
|
<x>859</x>
|
||||||
<y>110</y>
|
<y>120</y>
|
||||||
</hint>
|
</hint>
|
||||||
<hint type="destinationlabel">
|
<hint type="destinationlabel">
|
||||||
<x>749</x>
|
<x>749</x>
|
||||||
|
@ -3346,8 +3346,8 @@ p, li { white-space: pre-wrap; }
|
||||||
<slot>zoomIn()</slot>
|
<slot>zoomIn()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel">
|
<hint type="sourcelabel">
|
||||||
<x>847</x>
|
<x>959</x>
|
||||||
<y>100</y>
|
<y>120</y>
|
||||||
</hint>
|
</hint>
|
||||||
<hint type="destinationlabel">
|
<hint type="destinationlabel">
|
||||||
<x>846</x>
|
<x>846</x>
|
||||||
|
@ -3362,8 +3362,8 @@ p, li { white-space: pre-wrap; }
|
||||||
<slot>zoomOut()</slot>
|
<slot>zoomOut()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel">
|
<hint type="sourcelabel">
|
||||||
<x>943</x>
|
<x>1059</x>
|
||||||
<y>108</y>
|
<y>120</y>
|
||||||
</hint>
|
</hint>
|
||||||
<hint type="destinationlabel">
|
<hint type="destinationlabel">
|
||||||
<x>943</x>
|
<x>943</x>
|
||||||
|
@ -3378,12 +3378,12 @@ p, li { white-space: pre-wrap; }
|
||||||
<slot>setEnabled(bool)</slot>
|
<slot>setEnabled(bool)</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel">
|
<hint type="sourcelabel">
|
||||||
<x>522</x>
|
<x>1060</x>
|
||||||
<y>160</y>
|
<y>241</y>
|
||||||
</hint>
|
</hint>
|
||||||
<hint type="destinationlabel">
|
<hint type="destinationlabel">
|
||||||
<x>522</x>
|
<x>659</x>
|
||||||
<y>104</y>
|
<y>120</y>
|
||||||
</hint>
|
</hint>
|
||||||
</hints>
|
</hints>
|
||||||
</connection>
|
</connection>
|
||||||
|
@ -3398,8 +3398,8 @@ p, li { white-space: pre-wrap; }
|
||||||
<y>151</y>
|
<y>151</y>
|
||||||
</hint>
|
</hint>
|
||||||
<hint type="destinationlabel">
|
<hint type="destinationlabel">
|
||||||
<x>708</x>
|
<x>859</x>
|
||||||
<y>110</y>
|
<y>120</y>
|
||||||
</hint>
|
</hint>
|
||||||
</hints>
|
</hints>
|
||||||
</connection>
|
</connection>
|
||||||
|
@ -3410,8 +3410,8 @@ p, li { white-space: pre-wrap; }
|
||||||
<slot>home()</slot>
|
<slot>home()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel">
|
<hint type="sourcelabel">
|
||||||
<x>616</x>
|
<x>759</x>
|
||||||
<y>118</y>
|
<y>120</y>
|
||||||
</hint>
|
</hint>
|
||||||
<hint type="destinationlabel">
|
<hint type="destinationlabel">
|
||||||
<x>616</x>
|
<x>616</x>
|
||||||
|
@ -3419,12 +3419,28 @@ p, li { white-space: pre-wrap; }
|
||||||
</hint>
|
</hint>
|
||||||
</hints>
|
</hints>
|
||||||
</connection>
|
</connection>
|
||||||
|
<connection>
|
||||||
|
<sender>selectHeightmapColor</sender>
|
||||||
|
<signal>clicked()</signal>
|
||||||
|
<receiver>colorHeightmap</receiver>
|
||||||
|
<slot>selectColor()</slot>
|
||||||
|
<hints>
|
||||||
|
<hint type="sourcelabel">
|
||||||
|
<x>434</x>
|
||||||
|
<y>291</y>
|
||||||
|
</hint>
|
||||||
|
<hint type="destinationlabel">
|
||||||
|
<x>379</x>
|
||||||
|
<y>292</y>
|
||||||
|
</hint>
|
||||||
|
</hints>
|
||||||
|
</connection>
|
||||||
</connections>
|
</connections>
|
||||||
<buttongroups>
|
<buttongroups>
|
||||||
<buttongroup name="geometrymode_size_group"/>
|
|
||||||
<buttongroup name="group_tiles_tiles"/>
|
<buttongroup name="group_tiles_tiles"/>
|
||||||
<buttongroup name="group_tiles_arrange"/>
|
<buttongroup name="group_tiles_arrange"/>
|
||||||
<buttongroup name="group_tiles_arrange_at"/>
|
<buttongroup name="group_tiles_arrange_at"/>
|
||||||
<buttongroup name="geometrymode_granularity_group"/>
|
<buttongroup name="geometrymode_granularity_group"/>
|
||||||
|
<buttongroup name="geometrymode_size_group"/>
|
||||||
</buttongroups>
|
</buttongroups>
|
||||||
</ui>
|
</ui>
|
||||||
|
|
Loading…
Reference in New Issue