Skip to content

Commit 5a67c93

Browse files
Start writing save mechanism
1 parent e313c98 commit 5a67c93

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/GUI/HotkeysMainWindow.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -569,3 +569,8 @@ QHBoxLayout* HotkeysMainWindow::CreateKeysOnKeyboard(const QString& str)
569569
}
570570
return pKeys;
571571
}
572+
573+
void HotkeysMainWindow::Save()
574+
{
575+
576+
}

src/GUI/HotkeysMainWindow.hpp

+2
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ class HotkeysMainWindow final : public QMainWindow
5656
void SetActionHotkey(const QString& fctShortName, const QString& goName, const QString& actName, const QString& hk);
5757
/// @brief Creates line of keys for keyboard layout.
5858
QHBoxLayout* CreateKeysOnKeyboard(const QString& str);
59+
/// @brief Saves changes into file.
60+
void Save();
5961

6062
private slots:
6163
void OnAbout();

src/GUI/WindowManager.cpp

+2-9
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,6 @@ WindowManager::WindowManager()
4343
});
4444
}
4545

46-
void WindowManager::Show()
47-
{
48-
pLaunchWidget->show();
49-
}
50-
5146
void WindowManager::SetTranslator(Languages lngType)
5247
{
5348
// Delete old translator
@@ -66,7 +61,5 @@ void WindowManager::SetTranslator(Languages lngType)
6661
}
6762
}
6863

69-
Languages WindowManager::GetLanguage()
70-
{
71-
return Language;
72-
}
64+
void WindowManager::Show() { pLaunchWidget->show(); }
65+
Languages WindowManager::GetLanguage() { return Language; }

0 commit comments

Comments
 (0)