general cleanup

-use of the override keyword
-delete unused code
-const correctness
-more uniform code style
-for each with const references when possible
-getters no longer use the word 'get'
-others
This commit is contained in:
lupoDharkael
2017-08-09 13:20:07 +02:00
parent 4d0b4d7b51
commit 924d467c53
69 changed files with 502 additions and 448 deletions

View File

@@ -35,13 +35,13 @@ Controller::Controller() : m_captureWindow(nullptr)
qApp->setQuitOnLastWindowClosed(false);
// init tray icon
if(!ConfigHandler().getDisabledTrayIcon()) {
if (!ConfigHandler().disabledTrayIconValue()) {
enableTrayIcon();
}
initDefaults();
QString StyleSheet = CaptureButton::getGlobalStyleSheet();
QString StyleSheet = CaptureButton::globalStyleSheet();
qApp->setStyleSheet(StyleSheet);
}
@@ -96,7 +96,7 @@ void Controller::openInfoWindow() {
}
void Controller::enableTrayIcon() {
if(m_trayIcon) {
if (m_trayIcon) {
return;
}
ConfigHandler().setDisabledTrayIcon(false);
@@ -138,7 +138,7 @@ void Controller::disableTrayIcon() {
}
void Controller::updateConfigComponents() {
if(m_configWindow) {
if (m_configWindow) {
m_configWindow->updateComponents();
}
}