Fix typos

This commit is contained in:
Chocobo1
2023-06-25 15:45:18 +08:00
parent 88bd4f270f
commit 6680fdda18
71 changed files with 164 additions and 164 deletions

View File

@@ -99,7 +99,7 @@ void Private::FileSystemPathValidator::setCheckWritePermission(const bool value)
Private::FileSystemPathValidator::TestResult
Private::FileSystemPathValidator::testPath(const Path &path) const
{
// `QFileInfo` will cache the query results and avoid exessive querying to filesystem
// `QFileInfo` will cache the query results and avoid excessive querying to filesystem
const QFileInfo info {path.data()};
if (!info.exists())

View File

@@ -173,7 +173,7 @@ OptionsDialog::OptionsDialog(IGUIApplication *app, QWidget *parent)
m_applyButton->setEnabled(false);
connect(m_applyButton, &QPushButton::clicked, this, &OptionsDialog::applySettings);
// disable mouse wheel event on widgets to avoid mis-selection
// disable mouse wheel event on widgets to avoid misselection
auto *wheelEventEater = new WheelEventEater(this);
for (QComboBox *widget : asConst(findChildren<QComboBox *>()))
widget->installEventFilter(wheelEventEater);

View File

@@ -45,7 +45,7 @@ namespace
// table of supposed nice steps for grid marks to get nice looking quarters of scale
const double roundingTable[] = {1.2, 1.6, 2, 2.4, 2.8, 3.2, 4, 6, 8};
struct SplittedValue
struct SplitValue
{
double arg;
Utils::Misc::SizeUnit unit;
@@ -55,7 +55,7 @@ namespace
}
};
SplittedValue getRoundedYScale(double value)
SplitValue getRoundedYScale(double value)
{
using Utils::Misc::SizeUnit;
@@ -289,7 +289,7 @@ void SpeedPlotView::paintEvent(QPaintEvent *)
QFontMetrics fontMetrics = painter.fontMetrics();
rect.adjust(4, 4, 0, -4); // Add padding
const SplittedValue niceScale = getRoundedYScale(maxYValue());
const SplitValue niceScale = getRoundedYScale(maxYValue());
rect.adjust(0, fontMetrics.height(), 0, 0); // Add top padding for top speed text
// draw Y axis speed labels