mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 18:30:06 +00:00
Ensure edit line dialog reset button resets dialog to proper defaults
This commit is contained in:
parent
3434db279e
commit
d039fef4f1
1 changed files with 17 additions and 19 deletions
|
|
@ -249,27 +249,25 @@ void AlertPaletteSettingsWidget::Impl::AddPhenomenonLine(
|
||||||
|
|
||||||
self_->AddSettingsCategory(&lineSettings);
|
self_->AddSettingsCategory(&lineSettings);
|
||||||
|
|
||||||
connect(
|
connect(toolButton,
|
||||||
toolButton,
|
&QAbstractButton::clicked,
|
||||||
&QAbstractButton::clicked,
|
self_,
|
||||||
self_,
|
[this, lineLabel, &lineSettings]()
|
||||||
[this, lineLabel, &lineSettings]()
|
{
|
||||||
{
|
// Set the active line label for when the dialog is finished
|
||||||
// Set the active line label for when the dialog is finished
|
activeLineSettings_ = &lineSettings;
|
||||||
activeLineSettings_ = &lineSettings;
|
|
||||||
|
|
||||||
// Initialize dialog with current line settings
|
// Initialize dialog with current line settings
|
||||||
editLineDialog_->set_border_color(lineLabel->border_color());
|
editLineDialog_->Initialize(lineLabel->border_color(),
|
||||||
editLineDialog_->set_highlight_color(lineLabel->highlight_color());
|
lineLabel->highlight_color(),
|
||||||
editLineDialog_->set_line_color(lineLabel->line_color());
|
lineLabel->line_color(),
|
||||||
|
lineLabel->border_width(),
|
||||||
|
lineLabel->highlight_width(),
|
||||||
|
lineLabel->line_width());
|
||||||
|
|
||||||
editLineDialog_->set_border_width(lineLabel->border_width());
|
// Show the dialog
|
||||||
editLineDialog_->set_highlight_width(lineLabel->highlight_width());
|
editLineDialog_->show();
|
||||||
editLineDialog_->set_line_width(lineLabel->line_width());
|
});
|
||||||
|
|
||||||
// Show the dialog
|
|
||||||
editLineDialog_->show();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace ui
|
} // namespace ui
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue