Skip to content

Commit d5dfd5a

Browse files
committed
GUI: removed my clumpsy selectfiles dialog. use the standard file selection dialog instead.
1 parent 3918948 commit d5dfd5a

5 files changed

Lines changed: 6 additions & 367 deletions

File tree

‎gui/gui.pro‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ FORMS = about.ui \
4444
resultsview.ui \
4545
scratchpad.ui \
4646
settings.ui \
47-
stats.ui \
48-
selectfilesdialog.ui
47+
stats.ui
4948

5049
TRANSLATIONS = cppcheck_de.ts \
5150
cppcheck_es.ts \
@@ -99,8 +98,7 @@ HEADERS += aboutdialog.h \
9998
txtreport.h \
10099
xmlreport.h \
101100
xmlreportv1.h \
102-
xmlreportv2.h \
103-
selectfilesdialog.h
101+
xmlreportv2.h
104102

105103
SOURCES += aboutdialog.cpp \
106104
application.cpp \
@@ -132,8 +130,7 @@ SOURCES += aboutdialog.cpp \
132130
txtreport.cpp \
133131
xmlreport.cpp \
134132
xmlreportv1.cpp \
135-
xmlreportv2.cpp \
136-
selectfilesdialog.cpp
133+
xmlreportv2.cpp
137134

138135
win32 {
139136
DEFINES += _CRT_SECURE_NO_WARNINGS

‎gui/mainwindow.cpp‎

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
#include "logview.h"
4444
#include "filelist.h"
4545
#include "showtypes.h"
46-
#include "selectfilesdialog.h"
4746

4847
static const QString OnlineHelpURL("http://cppcheck.sourceforge.net/manual.html");
4948

@@ -374,15 +373,9 @@ QStringList MainWindow::SelectFilesToCheck(QFileDialog::FileMode mode)
374373
// QFileDialog::getExistingDirectory() because they show native Windows
375374
// selection dialog which is a lot more usable than Qt:s own dialog.
376375
if (mode == QFileDialog::ExistingFiles) {
377-
SelectFilesDialog dialog(this);
378-
if (dialog.exec() == QDialog::Accepted) {
379-
selected = dialog.getFiles();
380-
}
381-
/*
382-
selected = QFileDialog::getOpenFileNames(this,
383-
tr("Select files to check"),
384-
mSettings->value(SETTINGS_CHECK_PATH, "").toString());
385-
*/
376+
selected = QFileDialog::getOpenFileNames(this,
377+
tr("Select files to check"),
378+
mSettings->value(SETTINGS_CHECK_PATH, "").toString());
386379
if (selected.isEmpty())
387380
mCurrentDirectory.clear();
388381
else {

‎gui/selectfilesdialog.cpp‎

Lines changed: 0 additions & 241 deletions
This file was deleted.

‎gui/selectfilesdialog.h‎

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)