mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 19:10:06 +00:00
Fix preemptive initialization because of clang-tidy changes
This commit is contained in:
parent
7ab12e7b4b
commit
d9d8f8de8a
1 changed files with 4 additions and 7 deletions
|
|
@ -30,12 +30,7 @@ static const auto logger_ = scwx::util::Logger::Create(logPrefix_);
|
|||
class EditMarkerDialog::Impl
|
||||
{
|
||||
public:
|
||||
explicit Impl(EditMarkerDialog* self) :
|
||||
self_ {self},
|
||||
deleteButton_ {self_->ui->buttonBox->addButton(
|
||||
"Delete", QDialogButtonBox::DestructiveRole)}
|
||||
{
|
||||
}
|
||||
explicit Impl(EditMarkerDialog* self) : self_ {self} {}
|
||||
|
||||
void show_color_dialog();
|
||||
void show_icon_file_dialog();
|
||||
|
|
@ -48,7 +43,7 @@ public:
|
|||
void handle_rejected();
|
||||
|
||||
EditMarkerDialog* self_;
|
||||
QPushButton* deleteButton_;
|
||||
QPushButton* deleteButton_ {nullptr};
|
||||
QIcon get_colored_icon(const types::MarkerIconInfo& marker,
|
||||
const std::string& color);
|
||||
|
||||
|
|
@ -80,6 +75,8 @@ EditMarkerDialog::EditMarkerDialog(QWidget* parent) :
|
|||
QString(""),
|
||||
QString::fromStdString(markerIcon.second.name));
|
||||
}
|
||||
p->deleteButton_ =
|
||||
ui->buttonBox->addButton("Delete", QDialogButtonBox::DestructiveRole);
|
||||
p->connect_signals();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue