diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-08-10 00:41:52 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-09-03 17:02:24 +0200 |
| commit | c97de27f9c5364b6f126016c5e1f31a76d5ce565 (patch) | |
| tree | f29bd3c22e60f9abdfbe46f145279d9af7aa7256 /src/wx/video_panel.cc | |
| parent | 5ed17cd197aa743922da18e2a5753f746d38122e (diff) | |
Remove use of wxT in favour of char_to_wx().
The wxWidgets docs advise against its use these days.
Diffstat (limited to 'src/wx/video_panel.cc')
| -rw-r--r-- | src/wx/video_panel.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/wx/video_panel.cc b/src/wx/video_panel.cc index 65f381fe3..06de93526 100644 --- a/src/wx/video_panel.cc +++ b/src/wx/video_panel.cc @@ -125,7 +125,7 @@ VideoPanel::create () auto const link_path = bitmap_path(gui_is_dark() ? "link_white.png" : "link_black.png"); - _left_right_link = new wxToggleButton (this, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(link_width, link_height)); + _left_right_link = new wxToggleButton(this, wxID_ANY, {}, wxDefaultPosition, wxSize(link_width, link_height)); _left_right_link->SetBitmap(wxBitmap(link_path, wxBITMAP_TYPE_PNG)); _right_crop_label = create_label (this, _("Right"), true); @@ -150,7 +150,7 @@ VideoPanel::create () boost::bind (&VideoPanel::top_crop_changed, this) ); - _top_bottom_link = new wxToggleButton (this, wxID_ANY, wxT(""), wxDefaultPosition, wxSize(link_width, link_height)); + _top_bottom_link = new wxToggleButton(this, wxID_ANY, {}, wxDefaultPosition, wxSize(link_width, link_height)); _top_bottom_link->SetBitmap(wxBitmap(link_path, wxBITMAP_TYPE_PNG)); _bottom_crop_label = create_label (this, _("Bottom"), true); @@ -171,7 +171,7 @@ VideoPanel::create () _fade_out = new Timecode<ContentTime> (this); wxClientDC dc (this); - auto size = dc.GetTextExtent (wxT ("A quite long name")); + auto size = dc.GetTextExtent(char_to_wx("A quite long name")); #ifdef __WXGTK3__ size.SetWidth (size.GetWidth() + 64); #endif @@ -198,7 +198,7 @@ VideoPanel::create () _range->Append (_("Full (JPEG, 0-255)")); _range->Append (_("Video (MPEG, 16-235)")); - _description = new StaticText (this, wxT ("\n \n \n \n \n"), wxDefaultPosition, wxDefaultSize); + _description = new StaticText(this, char_to_wx("\n \n \n \n \n"), wxDefaultPosition, wxDefaultSize); auto font = _description->GetFont(); font.SetStyle(wxFONTSTYLE_ITALIC); font.SetPointSize(font.GetPointSize() - 1); @@ -481,7 +481,7 @@ VideoPanel::setup_description () { auto vc = _parent->selected_video (); if (vc.empty ()) { - checked_set (_description, wxT ("")); + checked_set(_description, wxString{}); return; } else if (vc.size() > 1) { checked_set (_description, _("Multiple content selected")); |
