Skip to content

Commit d5acaff

Browse files
AmanChaturvedi24Aman Chaturvedi
andauthored
chore: fix typo in comment in GlobalShortcutFilter (flameshot-org#4274)
* chore: fix typo in comment in GlobalShortcutFilter * chore: fix typos in comments and function names - Fix 'temporal workwrround' to 'temporary workaround' in GlobalShortcutFilter - Fix 'habdler' to 'handler' in ButtonHandler comment - Fix 'the the' to 'to the' in ButtonHandler comment - Fix 'minimun' to 'minimum' in ButtonHandler function name --------- Co-authored-by: Aman Chaturvedi <[email protected]>
1 parent 4eba111 commit d5acaff

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/core/globalshortcutfilter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ bool GlobalShortcutFilter::nativeEventFilter(const QByteArray& eventType,
2727

2828
MSG* msg = static_cast<MSG*>(message);
2929
if (msg->message == WM_HOTKEY) {
30-
// TODO: this is just a temporal workwrround, proper global
30+
// TODO: this is just a temporary workaround; proper global
3131
// support would need custom shortcuts defined by the user.
3232
const quint32 keycode = HIWORD(msg->lParam);
3333
const quint32 modifiers = LOWORD(msg->lParam);

src/widgets/capture/buttonhandler.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include <QPoint>
77
#include <QScreen>
88

9-
// ButtonHandler is a habdler for every active button. It makes easier to
9+
// ButtonHandler is a handler for every active button. It makes easier to
1010
// manipulate the buttons as a unit.
1111

1212
ButtonHandler::ButtonHandler(const QVector<CaptureToolButton*>& v,
@@ -76,7 +76,7 @@ void ButtonHandler::updatePosition(const QRect& selection)
7676
// Copy of the selection area for internal modifications
7777
m_selection = intersectWithAreas(selection);
7878
updateBlockedSides();
79-
ensureSelectionMinimunSize();
79+
ensureSelectionMinimumSize();
8080
// Indicates the actual button to be moved
8181
int elemIndicator = 0;
8282

@@ -312,10 +312,10 @@ void ButtonHandler::positionButtonsInside(int index)
312312
m_buttonsAreInside = true;
313313
}
314314

315-
void ButtonHandler::ensureSelectionMinimunSize()
315+
void ButtonHandler::ensureSelectionMinimumSize()
316316
{
317317
// Detect if a side is smaller than a button in order to prevent collision
318-
// and redimension the base area the the base size of a single button per
318+
// and redimension the base area to the base size of a single button per
319319
// side
320320
if (m_selection.width() < m_buttonBaseSize) {
321321
if (!m_blockedLeft) {

src/widgets/capture/buttonhandler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public slots:
7373
void updateBlockedSides();
7474
void expandSelection();
7575
void positionButtonsInside(int index);
76-
void ensureSelectionMinimunSize();
76+
void ensureSelectionMinimumSize();
7777
void moveButtonsToPoints(const QVector<QPoint>& points, int& index);
7878
void adjustHorizontalCenter(QPoint& center);
7979
};

0 commit comments

Comments
 (0)