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?
|
# source?
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
# Include all dynamically linked runtime libaries such as MSVCRxxx.dll
|
# Include all dynamically linked runtime libraries such as MSVCRxxx.dll
|
||||||
include(InstallRequiredSystemLibraries)
|
include(InstallRequiredSystemLibraries)
|
||||||
|
|
||||||
if(RUN_IN_PLACE)
|
if(RUN_IN_PLACE)
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ def download_url(url: str) -> str:
|
|||||||
def _file_unquote(file: str) -> str:
|
def _file_unquote(file: str) -> str:
|
||||||
"""Given a URL encoded file unquote it.
|
"""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.
|
directory traversals.
|
||||||
"""
|
"""
|
||||||
return urllib.parse.unquote(file).replace('../', '').replace('/', '').replace('\\', '')
|
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:
|
Also accepts optional parameters:
|
||||||
- `message': message used as a description of the transfer
|
- `message': message used as a description of the transfer
|
||||||
- `sender': email address used to receive an ACK if the upload is
|
- `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
|
will be also sent
|
||||||
- `recipients': list of email addresses of recipients. When the upload
|
- `recipients': list of email addresses of recipients. When the upload
|
||||||
succeed every recipients will receive an email with a link
|
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;
|
virtual QIcon icon(const QColor& background, bool inEditor) const = 0;
|
||||||
// Name displayed for the tool, this could be translated with tr()
|
// Name displayed for the tool, this could be translated with tr()
|
||||||
virtual QString name() const = 0;
|
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
|
// for the tool in the internals of Flameshot
|
||||||
virtual ToolType nameID() const = 0;
|
virtual ToolType nameID() const = 0;
|
||||||
// Short description of the tool.
|
// Short description of the tool.
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ void ButtonHandler::updatePosition(const QRect& selection)
|
|||||||
elemsAtCorners -= elemCornersTop;
|
elemsAtCorners -= elemCornersTop;
|
||||||
int elemCornersBotton = qBound(0, elemsAtCorners, maxExtra);
|
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) {
|
if (!m_blockedBotton) {
|
||||||
int addCounter = buttonsPerRow + elemCornersBotton;
|
int addCounter = buttonsPerRow + elemCornersBotton;
|
||||||
// Don't add more than we have
|
// Don't add more than we have
|
||||||
@@ -135,7 +135,7 @@ void ButtonHandler::updatePosition(const QRect& selection)
|
|||||||
horizontalPoints(center, addCounter, true);
|
horizontalPoints(center, addCounter, true);
|
||||||
moveButtonsToPoints(positions, elemIndicator);
|
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) {
|
if (!m_blockedRight && elemIndicator < vecLength) {
|
||||||
int addCounter = buttonsPerCol;
|
int addCounter = buttonsPerCol;
|
||||||
addCounter = qBound(0, addCounter, vecLength - elemIndicator);
|
addCounter = qBound(0, addCounter, vecLength - elemIndicator);
|
||||||
@@ -146,7 +146,7 @@ void ButtonHandler::updatePosition(const QRect& selection)
|
|||||||
verticalPoints(center, addCounter, false);
|
verticalPoints(center, addCounter, false);
|
||||||
moveButtonsToPoints(positions, elemIndicator);
|
moveButtonsToPoints(positions, elemIndicator);
|
||||||
}
|
}
|
||||||
// Add buttons at the top of the seletion
|
// Add buttons at the top of the selection
|
||||||
if (!m_blockedTop && elemIndicator < vecLength) {
|
if (!m_blockedTop && elemIndicator < vecLength) {
|
||||||
int addCounter = buttonsPerRow + elemCornersTop;
|
int addCounter = buttonsPerRow + elemCornersTop;
|
||||||
addCounter = qBound(0, addCounter, vecLength - elemIndicator);
|
addCounter = qBound(0, addCounter, vecLength - elemIndicator);
|
||||||
@@ -159,7 +159,7 @@ void ButtonHandler::updatePosition(const QRect& selection)
|
|||||||
horizontalPoints(center, addCounter, false);
|
horizontalPoints(center, addCounter, false);
|
||||||
moveButtonsToPoints(positions, elemIndicator);
|
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) {
|
if (!m_blockedLeft && elemIndicator < vecLength) {
|
||||||
int addCounter = buttonsPerCol;
|
int addCounter = buttonsPerCol;
|
||||||
addCounter = qBound(0, addCounter, vecLength - elemIndicator);
|
addCounter = qBound(0, addCounter, vecLength - elemIndicator);
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ void NotifierBox::enterEvent(QEvent*)
|
|||||||
void NotifierBox::paintEvent(QPaintEvent*)
|
void NotifierBox::paintEvent(QPaintEvent*)
|
||||||
{
|
{
|
||||||
QPainter painter(this);
|
QPainter painter(this);
|
||||||
// draw Elipse
|
// draw Ellipse
|
||||||
painter.setRenderHint(QPainter::Antialiasing);
|
painter.setRenderHint(QPainter::Antialiasing);
|
||||||
painter.setBrush(QBrush(m_bgColor, Qt::SolidPattern));
|
painter.setBrush(QBrush(m_bgColor, Qt::SolidPattern));
|
||||||
painter.setPen(QPen(Qt::transparent));
|
painter.setPen(QPen(Qt::transparent));
|
||||||
|
|||||||
Reference in New Issue
Block a user