Rename KeyboardLayout::set_keyboard_layout to set_layout

Since the class indicates that it is a keyboard layout, no need to over
load the name with it.
This commit is contained in:
Nil Geisweiller 2020-04-04 10:36:51 +03:00 committed by Robin Gareus
parent 104d37e5a2
commit 7ffaae77a7
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
3 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@ KeyboardLayout::~KeyboardLayout ()
}
void
KeyboardLayout::set_keyboard_layout (Layout layout)
KeyboardLayout::set_layout (Layout layout)
{
switch (layout) {
case QWERTY:

View File

@ -44,7 +44,7 @@ public:
S_QWERTZ
};
void set_keyboard_layout (Layout layout);
void set_layout (Layout layout);
int key_binding (const char* key) const;
const char* note_binding (int note) const;

View File

@ -895,6 +895,6 @@ APianoKeyboard::set_octave_range (int octave_range)
void
APianoKeyboard::set_keyboard_layout (KeyboardLayout::Layout layout)
{
_keyboard_layout.set_keyboard_layout (layout);
_keyboard_layout.set_layout (layout);
queue_draw ();
}