mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-03 06:02:29 -06:00
Fix typos
This commit is contained in:
@@ -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())
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user