Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions gui/checkthread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <QDir>
#include <QFile>
#include <QProcess>
#include <QRegExp>
#include <QSettings>

static bool executeCommand(std::string exe, std::vector<std::string> args, std::string redirect, std::string *output)
Expand Down
266 changes: 133 additions & 133 deletions gui/cppcheck_de.ts

Large diffs are not rendered by default.

266 changes: 133 additions & 133 deletions gui/cppcheck_es.ts

Large diffs are not rendered by default.

266 changes: 133 additions & 133 deletions gui/cppcheck_fi.ts

Large diffs are not rendered by default.

266 changes: 133 additions & 133 deletions gui/cppcheck_fr.ts

Large diffs are not rendered by default.

266 changes: 133 additions & 133 deletions gui/cppcheck_it.ts

Large diffs are not rendered by default.

266 changes: 133 additions & 133 deletions gui/cppcheck_ja.ts

Large diffs are not rendered by default.

266 changes: 133 additions & 133 deletions gui/cppcheck_ko.ts

Large diffs are not rendered by default.

266 changes: 133 additions & 133 deletions gui/cppcheck_nl.ts

Large diffs are not rendered by default.

266 changes: 133 additions & 133 deletions gui/cppcheck_ru.ts

Large diffs are not rendered by default.

266 changes: 133 additions & 133 deletions gui/cppcheck_sr.ts

Large diffs are not rendered by default.

266 changes: 133 additions & 133 deletions gui/cppcheck_sv.ts

Large diffs are not rendered by default.

266 changes: 133 additions & 133 deletions gui/cppcheck_zh_CN.ts

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions gui/librarydialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#include <QFile>
#include <QFileDialog>
#include <QMessageBox>
#include <QRegExp>
#include <QTextStream>

// TODO: get/compare functions from header
Expand Down
5 changes: 3 additions & 2 deletions gui/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
#include <QFileInfo>
#include <QInputDialog>
#include <QMessageBox>
#include <QRegExp>
#include <QSettings>
#include <QTimer>

Expand Down Expand Up @@ -594,7 +595,7 @@ QStringList MainWindow::selectFilesToAnalyze(QFileDialog::FileMode mode)
mCurrentDirectory = inf.absolutePath();
}
formatAndSetTitle();
} else if (mode == QFileDialog::DirectoryOnly) {
} else if (mode == QFileDialog::Directory) {
QString dir = QFileDialog::getExistingDirectory(this,
tr("Select directory to analyze"),
getPath(SETTINGS_LAST_CHECK_PATH));
Expand Down Expand Up @@ -678,7 +679,7 @@ void MainWindow::analyzeFiles()

void MainWindow::analyzeDirectory()
{
QStringList dir = selectFilesToAnalyze(QFileDialog::DirectoryOnly);
QStringList dir = selectFilesToAnalyze(QFileDialog::Directory);
if (dir.isEmpty())
return;

Expand Down
1 change: 1 addition & 0 deletions gui/projectfiledialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include <QDir>
#include <QFileDialog>
#include <QFileInfo>
#include <QRegExp>
#include <QSettings>

/** Return paths from QListWidget */
Expand Down
2 changes: 1 addition & 1 deletion gui/resultstree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1260,7 +1260,7 @@ void ResultsTree::updateFromOldReport(const QString &filename)
error->setData(data);
fileItem->child(j, COLUMN_SINCE_DATE)->setText(oldErrors[oldErrorIndex].sinceDate);
} else if (oldErrorIndex < 0 || data[SINCEDATE].toString().isEmpty()) {
const QString sinceDate = QDate::currentDate().toString(Qt::SystemLocaleShortDate);
const QString sinceDate = QLocale::system().dateFormat(QLocale::ShortFormat);
data[SINCEDATE] = sinceDate;
error->setData(data);
fileItem->child(j, COLUMN_SINCE_DATE)->setText(sinceDate);
Expand Down
8 changes: 8 additions & 0 deletions gui/resultsview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -555,11 +555,19 @@ void ResultsView::variableDoubleClicked(QListWidgetItem* item)

void ResultsView::editVariablesFilter(const QString &text)
{
#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
for (auto *item: mUI->mListAddedVariables->findItems(".*", Qt::MatchRegularExpression)) {
#else
for (auto *item: mUI->mListAddedVariables->findItems(".*", Qt::MatchRegExp)) {
#endif
QString varname = item->text().mid(0, item->text().indexOf(" "));
item->setHidden(!varname.contains(text));
}
#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
for (auto *item: mUI->mListMissingVariables->findItems(".*", Qt::MatchRegularExpression))
#else
for (auto *item: mUI->mListMissingVariables->findItems(".*", Qt::MatchRegExp))
#endif
item->setHidden(!item->text().contains(text));
}

Expand Down
1 change: 1 addition & 0 deletions gui/statsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#include <QFileInfo>
#include <QMimeData>
#include <QPrinter>
#include <QRegExp>
#include <QTextDocument>
#include <QWidget>

Expand Down