mirror of
https://github.com/fergalmoran/flameshot.git
synced 2025-12-22 09:51:06 +00:00
fixed typing mistakes
This commit is contained in:
@@ -63,7 +63,7 @@ set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/README.md") # TODO: Wher
|
||||
# source?
|
||||
|
||||
if(WIN32)
|
||||
# Include all dynamically linked runtime libaries such as MSVCRxxx.dll
|
||||
# Include all dynamically linked runtime libraries such as MSVCRxxx.dll
|
||||
include(InstallRequiredSystemLibraries)
|
||||
|
||||
if(RUN_IN_PLACE)
|
||||
|
||||
@@ -115,7 +115,7 @@ def download_url(url: str) -> str:
|
||||
def _file_unquote(file: str) -> str:
|
||||
"""Given a URL encoded file unquote it.
|
||||
|
||||
All occurences of `\', `/' and `../' will be ignored to avoid possible
|
||||
All occurrences of `\', `/' and `../' will be ignored to avoid possible
|
||||
directory traversals.
|
||||
"""
|
||||
return urllib.parse.unquote(file).replace('../', '').replace('/', '').replace('\\', '')
|
||||
@@ -297,7 +297,7 @@ def upload(files: List[str], message: str = '', sender: str = None,
|
||||
Also accepts optional parameters:
|
||||
- `message': message used as a description of the transfer
|
||||
- `sender': email address used to receive an ACK if the upload is
|
||||
successfull. For every download by the recipients an email
|
||||
successful. For every download by the recipients an email
|
||||
will be also sent
|
||||
- `recipients': list of email addresses of recipients. When the upload
|
||||
succeed every recipients will receive an email with a link
|
||||
|
||||
@@ -118,7 +118,7 @@ public:
|
||||
virtual QIcon icon(const QColor& background, bool inEditor) const = 0;
|
||||
// Name displayed for the tool, this could be translated with tr()
|
||||
virtual QString name() const = 0;
|
||||
// Codename for the tool, this hsouldn't change as it is used as ID
|
||||
// Codename for the tool, this shouldn't change as it is used as ID
|
||||
// for the tool in the internals of Flameshot
|
||||
virtual ToolType nameID() const = 0;
|
||||
// Short description of the tool.
|
||||
|
||||
@@ -120,7 +120,7 @@ void ButtonHandler::updatePosition(const QRect& selection)
|
||||
elemsAtCorners -= elemCornersTop;
|
||||
int elemCornersBotton = qBound(0, elemsAtCorners, maxExtra);
|
||||
|
||||
// Add buttons at the button of the seletion
|
||||
// Add buttons at the button of the selection
|
||||
if (!m_blockedBotton) {
|
||||
int addCounter = buttonsPerRow + elemCornersBotton;
|
||||
// Don't add more than we have
|
||||
@@ -135,7 +135,7 @@ void ButtonHandler::updatePosition(const QRect& selection)
|
||||
horizontalPoints(center, addCounter, true);
|
||||
moveButtonsToPoints(positions, elemIndicator);
|
||||
}
|
||||
// Add buttons at the right side of the seletion
|
||||
// Add buttons at the right side of the selection
|
||||
if (!m_blockedRight && elemIndicator < vecLength) {
|
||||
int addCounter = buttonsPerCol;
|
||||
addCounter = qBound(0, addCounter, vecLength - elemIndicator);
|
||||
@@ -146,7 +146,7 @@ void ButtonHandler::updatePosition(const QRect& selection)
|
||||
verticalPoints(center, addCounter, false);
|
||||
moveButtonsToPoints(positions, elemIndicator);
|
||||
}
|
||||
// Add buttons at the top of the seletion
|
||||
// Add buttons at the top of the selection
|
||||
if (!m_blockedTop && elemIndicator < vecLength) {
|
||||
int addCounter = buttonsPerRow + elemCornersTop;
|
||||
addCounter = qBound(0, addCounter, vecLength - elemIndicator);
|
||||
@@ -159,7 +159,7 @@ void ButtonHandler::updatePosition(const QRect& selection)
|
||||
horizontalPoints(center, addCounter, false);
|
||||
moveButtonsToPoints(positions, elemIndicator);
|
||||
}
|
||||
// Add buttons at the left side of the seletion
|
||||
// Add buttons at the left side of the selection
|
||||
if (!m_blockedLeft && elemIndicator < vecLength) {
|
||||
int addCounter = buttonsPerCol;
|
||||
addCounter = qBound(0, addCounter, vecLength - elemIndicator);
|
||||
|
||||
@@ -48,7 +48,7 @@ void NotifierBox::enterEvent(QEvent*)
|
||||
void NotifierBox::paintEvent(QPaintEvent*)
|
||||
{
|
||||
QPainter painter(this);
|
||||
// draw Elipse
|
||||
// draw Ellipse
|
||||
painter.setRenderHint(QPainter::Antialiasing);
|
||||
painter.setBrush(QBrush(m_bgColor, Qt::SolidPattern));
|
||||
painter.setPen(QPen(Qt::transparent));
|
||||
|
||||
Reference in New Issue
Block a user