mirror of
https://github.com/RGBCube/serenity
synced 2025-05-21 15:15:07 +00:00
LibGUI: Put all classes in the GUI namespace and remove the leading G
This took me a moment. Welcome to the new world of GUI::Widget! :^)
This commit is contained in:
parent
2d39da5405
commit
c5bd9d4ed1
337 changed files with 5400 additions and 4816 deletions
|
@ -27,7 +27,9 @@
|
|||
#include <AK/StringBuilder.h>
|
||||
#include <LibGUI/GShortcut.h>
|
||||
|
||||
static String to_string(KeyCode key)
|
||||
namespace GUI {
|
||||
|
||||
static String key_code_to_string(KeyCode key)
|
||||
{
|
||||
switch (key) {
|
||||
case Key_Escape:
|
||||
|
@ -244,7 +246,7 @@ static String to_string(KeyCode key)
|
|||
}
|
||||
}
|
||||
|
||||
String GShortcut::to_string() const
|
||||
String Shortcut::to_string() const
|
||||
{
|
||||
Vector<String, 8> parts;
|
||||
|
||||
|
@ -257,7 +259,7 @@ String GShortcut::to_string() const
|
|||
if (m_modifiers & Mod_Logo)
|
||||
parts.append("Logo");
|
||||
|
||||
parts.append(::to_string(m_key));
|
||||
parts.append(key_code_to_string(m_key));
|
||||
|
||||
StringBuilder builder;
|
||||
for (int i = 0; i < parts.size(); ++i) {
|
||||
|
@ -267,3 +269,5 @@ String GShortcut::to_string() const
|
|||
}
|
||||
return builder.to_string();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue