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

@@ -22,23 +22,27 @@ ExitTool::ExitTool(QObject *parent) : CaptureTool(parent) {
}
bool ExitTool::isSelectable() {
int ExitTool::id() const {
return 0;
}
bool ExitTool::isSelectable() const {
return false;
}
QString ExitTool::getIconName() {
QString ExitTool::iconName() const {
return "close.png";
}
QString ExitTool::getName() {
QString ExitTool::name() const {
return tr("Exit");
}
QString ExitTool::getDescription() {
QString ExitTool::description() const {
return tr("Leave the capture screen");
}
CaptureTool::ToolWorkType ExitTool::getToolType() {
CaptureTool::ToolWorkType ExitTool::toolType() const {
return TYPE_WORKER;
}