[Summary] Set cursor by default at the end of line in the text entry (bug 44536)

This commit is contained in:
Nikolay 2014-12-16 15:45:41 +02:00
parent 9a4e8a516c
commit 42b56fe1c0
2 changed files with 10 additions and 0 deletions

View file

@ -55,6 +55,13 @@ AddTracksDialog::AddTracksDialog ()
_increment_button.signal_clicked.connect (sigc::mem_fun (*this, &AddTracksDialog::on_increment_button));
}
void
AddTracksDialog::on_show ()
{
WavesDialog::on_show ();
_tracks_counter_entry.set_position (-1); // set cursor at the last position
}
void
AddTracksDialog::populate_tracks_format_dropdown ()
{
@ -88,6 +95,7 @@ AddTracksDialog::on_decrement_button (WavesButton*)
{
set_track_count(1);
}
_tracks_counter_entry.set_position (-1); // set cursor at the last position
}
void
@ -105,6 +113,7 @@ AddTracksDialog::on_increment_button (WavesButton*)
}
input_channels ();
_tracks_counter_entry.set_position (-1); // set cursor at the last position
}
int

View file

@ -36,6 +36,7 @@ public:
void setup();
int count();
ARDOUR::ChanCount input_channels ();
void on_show ();
protected:
void on_enter_pressed ();