fernandotonon/QtMeshEditor

View on GitHub
src/mainwindow.cpp

Summary

Maintainability
Test Coverage
C
73%

Showing 22 of 24 total issues

TODO found
Open

/// /////////////////////// TODO improve the ui (toolbar, menubar,....) and add translation (obviously Portuguese but french, english, may be japaneese !)
Severity: Minor
Found in src/mainwindow.cpp by fixme

TODO found
Open

createEditorViewport(/*TODO add the type of view (perspective, left,....*/);
Severity: Minor
Found in src/mainwindow.cpp by fixme

TODO found
Open

// TODO add correct icon for tube and polish the existing ones
Severity: Minor
Found in src/mainwindow.cpp by fixme

TODO found
Open

// TODO add some procedure to determine where to create the new widget so that it looks like 2x2 matrix view
Severity: Minor
Found in src/mainwindow.cpp by fixme

TODO found
Open

/////////////////////////// TODO Clean up the code of MainWindow
Severity: Minor
Found in src/mainwindow.cpp by fixme

TODO found
Open

void MainWindow::createEditorViewport(/*TODO add the type of view (perspective, left,....*/)
Severity: Minor
Found in src/mainwindow.cpp by fixme

The function on_actionCustom_toggled is never used.
Open

void MainWindow::on_actionCustom_toggled(bool arg1)
Severity: Minor
Found in src/mainwindow.cpp by cppcheck

The function on_actionDark_toggled is never used.
Open

void MainWindow::on_actionDark_toggled(bool arg1)
Severity: Minor
Found in src/mainwindow.cpp by cppcheck

The function on_actionImport_triggered is never used.
Open

void MainWindow::on_actionImport_triggered()
Severity: Minor
Found in src/mainwindow.cpp by cppcheck

The function on_actionAdd_Resource_location_triggered is never used.
Open

void MainWindow::on_actionAdd_Resource_location_triggered()
Severity: Minor
Found in src/mainwindow.cpp by cppcheck

The function on_actionSingle_toggled is never used.
Open

void MainWindow::on_actionSingle_toggled(bool arg1)
Severity: Minor
Found in src/mainwindow.cpp by cppcheck

The function on_action1x1_Side_by_Side_toggled is never used.
Open

void MainWindow::on_action1x1_Side_by_Side_toggled(bool arg1)
Severity: Minor
Found in src/mainwindow.cpp by cppcheck

The function on_actionMaterial_Editor_triggered is never used.
Open

void MainWindow::on_actionMaterial_Editor_triggered()
Severity: Minor
Found in src/mainwindow.cpp by cppcheck

The function on_actionObjects_Toolbar_toggled is never used.
Open

void MainWindow::on_actionObjects_Toolbar_toggled(bool arg1)
Severity: Minor
Found in src/mainwindow.cpp by cppcheck

The function on_action1x1_Upper_and_Lower_toggled is never used.
Open

void MainWindow::on_action1x1_Upper_and_Lower_toggled(bool arg1)
Severity: Minor
Found in src/mainwindow.cpp by cppcheck

The function on_actionChange_Ambient_Light_triggered is never used.
Open

void MainWindow::on_actionChange_Ambient_Light_triggered()
Severity: Minor
Found in src/mainwindow.cpp by cppcheck

The function on_actionMeshEditor_toggled is never used.
Open

void MainWindow::on_actionMeshEditor_toggled(bool arg1)
Severity: Minor
Found in src/mainwindow.cpp by cppcheck

The function dragEnterEvent is never used.
Open

void MainWindow::dragEnterEvent(QDragEnterEvent *event)
Severity: Minor
Found in src/mainwindow.cpp by cppcheck

Local variable reply shadows outer variable
Wontfix

QMessageBox::StandardButton reply = QMessageBox::question(nullptr, tr("Update"), tr("A new version is available. Do you want to update?"), QMessageBox::Yes | QMessageBox::No);
Severity: Minor
Found in src/mainwindow.cpp and 1 other location by cppcheck
src/mainwindow.cpp on lines 712..712

The function on_actionAbout_triggered is never used.
Open

void MainWindow::on_actionAbout_triggered()
Severity: Minor
Found in src/mainwindow.cpp by cppcheck

The function on_actionTools_Toolbar_toggled is never used.
Open

void MainWindow::on_actionTools_Toolbar_toggled(bool arg1)
Severity: Minor
Found in src/mainwindow.cpp by cppcheck

The function on_actionExport_Selected_triggered is never used.
Open

void MainWindow::on_actionExport_Selected_triggered()
Severity: Minor
Found in src/mainwindow.cpp by cppcheck

The function on_actionLight_toggled is never used.
Open

void MainWindow::on_actionLight_toggled(bool arg1)
Severity: Minor
Found in src/mainwindow.cpp by cppcheck

The function on_actionVerify_Update_triggered is never used.
Invalid

void MainWindow::on_actionVerify_Update_triggered()
Severity: Minor
Found in src/mainwindow.cpp by cppcheck
Category
Status