Fix typos

This commit is contained in:
Chocobo1
2020-10-20 18:44:04 +08:00
committed by sledgehammer999
parent 891c471160
commit f02b65b866
7 changed files with 31 additions and 31 deletions

View File

@@ -178,8 +178,8 @@ QtLockedFile::LockMode QtLockedFile::lockMode() const
can be locked.
If \a block is true, this function will block until the lock is
aquired. If \a block is false, this function returns \e false
immediately if the lock cannot be aquired.
acquired. If \a block is false, this function returns \e false
immediately if the lock cannot be acquired.
If this object already has a lock of type \a mode, this function
returns \e true immediately. If this object has a lock of a

View File

@@ -42,7 +42,7 @@ namespace
{
bool isBitTorrentInfoHash(const QString &string)
{
// There are 2 represenations for BitTorrent info hash:
// There are 2 representations for BitTorrent info hash:
// 1. 40 chars hex-encoded string
// == 20 (SHA-1 length in bytes) * 2 (each byte maps to 2 hex characters)
// 2. 32 chars Base32 encoded string

View File

@@ -1311,7 +1311,7 @@ void MainWindow::dropEvent(QDropEvent *event)
for (const QString &file : asConst(otherFiles)) {
createTorrentTriggered(file);
// currently only hande the first entry
// currently only handle the first entry
// this is a stub that can be expanded later to create many torrents at once
break;
}

View File

@@ -548,7 +548,7 @@ window.qBittorrent.ContextMenu = (function() {
this.menu.getElement('a[href$=newSubscription]').parentNode.addClass('separator');
switch (selectedRows.length) {
case 0:
// remove seperator on top of newSubscription entry to avoid double line
// remove separator on top of newSubscription entry to avoid double line
this.menu.getElement('a[href$=newSubscription]').parentNode.removeClass('separator');
// menu when nothing selected
this.hideItem('update');

View File

@@ -2062,9 +2062,9 @@ window.qBittorrent.DynamicTable = (function() {
}
row['data'] = {};
tds[0].style.overflow = 'visible';
let indentaion = row.full_data.indentaion;
tds[0].style.paddingLeft = (indentaion * 32 + 4) + 'px';
tds[1].style.paddingLeft = (indentaion * 32 + 4) + 'px';
let indentation = row.full_data.indentation;
tds[0].style.paddingLeft = (indentation * 32 + 4) + 'px';
tds[1].style.paddingLeft = (indentation * 32 + 4) + 'px';
},
updateIcons: function() {
// state_icon

View File

@@ -428,14 +428,14 @@
return torrentDate;
})());
// Place in iframe with sandbox atribute to prevent js execution
// Place in iframe with sandbox attribute to prevent js execution
let torrentDescription = document.createRange().createContextualFragment('<iframe sandbox id="rssDescription"></iframe>');
$('rssDetailsView').append(torrentDescription);
document.getElementById('rssDescription').srcdoc = '<html><head><link rel="stylesheet" type="text/css" href="css/style.css" /></head><body>' + article.description + "</body></html>";
//calculate height to fill screen
document.getElementById('rssDescription').style.height =
"calc(100% - " + document.getElementById('rssTorrentDetailsName').offsetHeight + "px - " +
"calc(100% - " + document.getElementById('rssTorrentDetailsName').offsetHeight + "px - " +
document.getElementById('rssTorrentDetailsDate').offsetHeight + "px - 5px)";
}
};
@@ -474,7 +474,7 @@
};
recFlatten(response);
// check if rows matche flattend response
// check if rows matches flattened response
let match = false;
if (rssFeedTable.rows.getLength() - 1 === flattenedResp.length) {
match = true;
@@ -551,7 +551,7 @@
showRssFeed(r.fullName);
}
else {
// calculate read differnce and update feed data
// calculate read difference and update feed data
let readDifference = 0;
let readChanged = false;
for (let i = 0; i < r.articles.length; ++i) {
@@ -570,7 +570,7 @@
rssFeedTable.rows.filter((row) => r.fullName.slice(0, row.full_data.dataPath.length) === row.full_data.dataPath)
.each((row) => row.full_data.unread += readDifference);
// if feed that is opened changed update dynamicly
// if feed that is opened changed update dynamically
if (openedFeedPath !== undefined && r.fullName.slice(0, openedFeedPath.length) === openedFeedPath) {
for (let i = 0; i < r.articles.length; ++i) {
let matchingRow = rssArticleTable.rows.filter((row) => row.full_data.feedUid === r.uid)
@@ -599,7 +599,7 @@
name: 'Unread',
unread: 0,
status: 'unread',
indentaion: 0,
indentation: 0,
dataUid: '',
dataUrl: '',
dataPath: ''
@@ -613,7 +613,7 @@
name: dataEntry.name,
unread: 0,
status: 'isFolder',
indentaion: dataEntry.depth,
indentation: dataEntry.depth,
dataUid: '',
dataUrl: '',
dataPath: dataEntry.fullName
@@ -631,7 +631,7 @@
name: dataEntry.name,
unread: 0,
status: status,
indentaion: dataEntry.depth,
indentation: dataEntry.depth,
dataUid: dataEntry.uid,
dataUrl: dataEntry.url,
dataPath: dataEntry.fullName