Skip to content

Commit 0d10c6e

Browse files
authored
Fix various typos (#547)
Typos found via `codespell -q 3 -L te,ridiculus,varius`
1 parent 767933d commit 0d10c6e

20 files changed

+32
-32
lines changed

doc/ads_qt_marketplace_description.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ If this flag is cleared, the widget resizing is deferred until the mouse button
6565

6666
### Opaque and non-opaque undocking
6767

68-
By default, opaque undocking is active. That means, as soon as you drag a dock widget or a dock area with a number of dock widgets it will be undocked and moved into a floating widget and then the floating widget will be dragged around. That means undocking will take place immediatelly. You can compare this with opaque splitter resizing. If the flag `OpaqueUndocking` is cleared, then non-opaque undocking is active. In this mode, undocking is more like a standard drag and drop operation. That means, the dragged dock widget or dock area is not undocked immediatelly. Instead, a drag preview widget is created and dragged around to indicate the future position of the dock widget or dock area. The actual dock operation is only executed when the mouse button is released. That makes it possible, to cancel an active drag operation with the escape key.
68+
By default, opaque undocking is active. That means, as soon as you drag a dock widget or a dock area with a number of dock widgets it will be undocked and moved into a floating widget and then the floating widget will be dragged around. That means undocking will take place immediately. You can compare this with opaque splitter resizing. If the flag `OpaqueUndocking` is cleared, then non-opaque undocking is active. In this mode, undocking is more like a standard drag and drop operation. That means, the dragged dock widget or dock area is not undocked immediately. Instead, a drag preview widget is created and dragged around to indicate the future position of the dock widget or dock area. The actual dock operation is only executed when the mouse button is released. That makes it possible, to cancel an active drag operation with the escape key.
6969

7070
The drag preview widget can be configured by a number of global dock manager flags:
7171

doc/user-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ Enabling this feature adds a button with a pin icon to each dock area.
481481
![DockAreaHasAutoHideButton true](cfg_flag_DockAreaHasAutoHideButton.png)
482482
483483
By clicking this button, the current dock widget (or the complete area - depending on the
484-
configuration flags) will be pinned to a certain border. The border is choosen
484+
configuration flags) will be pinned to a certain border. The border is chosen
485485
depending on the location of the dock area. If you click the pin button while
486486
holding down the **Ctrl** key, the whole dock area will be pinned to a certain
487487
border.

sip/DockContainerWidget.sip

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ namespace ads
99
* Container that manages a number of dock areas with single dock widgets
1010
* or tabyfied dock widgets in each area.
1111
* Each window that support docking has a DockContainerWidget. That means
12-
* the main application window and all floating windows are ore contain
13-
* an DockContainerWidget.
12+
* the main application window and all floating windows contain a
13+
* DockContainerWidget.
1414
*/
1515
class CDockContainerWidget : QFrame
1616
{

src/AutoHideDockContainer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ void CAutoHideDockContainer::addDockWidget(CDockWidget* DockWidget)
355355
d->DockArea->addDockWidget(DockWidget);
356356
updateSize();
357357
// The dock area is not visible and will not update the size when updateSize()
358-
// is called for this auto hide container. Therefore we explicitely resize
358+
// is called for this auto hide container. Therefore we explicitly resize
359359
// it here. As soon as it will become visible, it will get the right size
360360
d->DockArea->resize(size());
361361
}
@@ -693,8 +693,8 @@ void CAutoHideDockContainer::moveToNewSideBarLocation(SideBarLocation NewSideBar
693693
auto SideBar = dockContainer()->autoHideSideBar(NewSideBarLocation);
694694
SideBar->addAutoHideWidget(this, TabIndex);
695695
// If we move a horizontal auto hide container to a vertical position
696-
// then we resize it to the orginal dock widget size, to avoid
697-
// an extremely streched dock widget after insertion
696+
// then we resize it to the original dock widget size, to avoid
697+
// an extremely stretched dock widget after insertion
698698
if (SideBar->orientation() != OldOrientation)
699699
{
700700
resetToInitialDockWidgetSize();

src/AutoHideDockContainer.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class ADS_EXPORT CAutoHideDockContainer : public QFrame
9191
virtual ~CAutoHideDockContainer();
9292

9393
/**
94-
* Get's the side tab bar
94+
* Gets the side tab bar
9595
*/
9696
CAutoHideSideBar* autoHideSideBar() const;
9797

@@ -101,7 +101,7 @@ class ADS_EXPORT CAutoHideDockContainer : public QFrame
101101
CAutoHideTab* autoHideTab() const;
102102

103103
/**
104-
* Get's the dock widget in this dock container
104+
* Gets the dock widget in this dock container
105105
*/
106106
CDockWidget* dockWidget() const;
107107

@@ -167,13 +167,13 @@ class ADS_EXPORT CAutoHideDockContainer : public QFrame
167167

168168
/**
169169
* Use this instead of resize.
170-
* Depending on the sidebar location this will set the width or heigth
170+
* Depending on the sidebar location this will set the width or height
171171
* of this auto hide container.
172172
*/
173173
void setSize(int Size);
174174

175175
/**
176-
* Resets the with or hight to the initial dock widget size dependinng on
176+
* Resets the width or height to the initial dock widget size dependinng on
177177
* the orientation.
178178
* If the orientation is Qt::Horizontal, then the height is reset to
179179
* the initial size and if orientation is Qt::Vertical, then the width is

src/AutoHideSideBar.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ class ADS_EXPORT CAutoHideSideBar : public QScrollArea
173173
/**
174174
* Overrides the minimumSizeHint() function of QScrollArea
175175
* The minimumSizeHint() is bigger than the sizeHint () for the scroll
176-
* area because even if the scrollbars are invisible, the required speace
176+
* area because even if the scrollbars are invisible, the required space
177177
* is reserved in the minimumSizeHint(). This override simply returns
178178
* sizeHint();
179179
*/

src/DockAreaTabBar.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ private Q_SLOTS:
141141
/**
142142
* Overrides the minimumSizeHint() function of QScrollArea
143143
* The minimumSizeHint() is bigger than the sizeHint () for the scroll
144-
* area because even if the scrollbars are invisible, the required speace
144+
* area because even if the scrollbars are invisible, the required space
145145
* is reserved in the minimumSizeHint(). This override simply returns
146146
* sizeHint();
147147
*/

src/DockAreaTitleBar.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ CTitleBarButton::CTitleBarButton(bool showInTitleBar, QWidget* parent)
814814
//============================================================================
815815
void CTitleBarButton::setVisible(bool visible)
816816
{
817-
// 'visible' can stay 'true' if and only if this button is configured to generaly visible:
817+
// 'visible' can stay 'true' if and only if this button is configured to generally visible:
818818
visible = visible && this->ShowInTitleBar;
819819

820820
// 'visible' can stay 'true' unless: this button is configured to be invisible when it is disabled and it is currently disabled:

src/DockAreaWidget.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -317,12 +317,12 @@ struct DockAreaWidgetPrivate
317317
}
318318

319319
/**
320-
* Udpates the enable state of the close and detach button
320+
* Updates the enable state of the close and detach button
321321
*/
322322
void updateTitleBarButtonStates();
323323

324324
/**
325-
* Udpates the enable state of the close and detach button
325+
* Updates the enable state of the close and detach button
326326
*/
327327
void updateTitleBarButtonVisibility(bool isTopLevel);
328328

@@ -1283,17 +1283,17 @@ SideBarLocation CDockAreaWidget::calculateSideTabBarArea() const
12831283
case BorderHorizontalLeft: SideTab = SideBarLocation::SideBarLeft; break;
12841284
case BorderHorizontalRight: SideTab = SideBarLocation::SideBarRight; break;
12851285

1286-
// 3. Its touching horizontal or vertical borders
1286+
// 3. It's touching horizontal or vertical borders
12871287
case BorderVertical : SideTab = SideBarLocation::SideBarBottom; break;
12881288
case BorderHorizontal: SideTab = SideBarLocation::SideBarRight; break;
12891289

1290-
// 4. Its in a corner
1290+
// 4. It's in a corner
12911291
case BorderTopLeft : SideTab = HorizontalOrientation ? SideBarLocation::SideBarTop : SideBarLocation::SideBarLeft; break;
12921292
case BorderTopRight : SideTab = HorizontalOrientation ? SideBarLocation::SideBarTop : SideBarLocation::SideBarRight; break;
12931293
case BorderBottomLeft : SideTab = HorizontalOrientation ? SideBarLocation::SideBarBottom : SideBarLocation::SideBarLeft; break;
12941294
case BorderBottomRight : SideTab = HorizontalOrientation ? SideBarLocation::SideBarBottom : SideBarLocation::SideBarRight; break;
12951295

1296-
// 5 Ists touching only one border
1296+
// 5. It's touching only one border
12971297
case BorderLeft: SideTab = SideBarLocation::SideBarLeft; break;
12981298
case BorderRight: SideTab = SideBarLocation::SideBarRight; break;
12991299
case BorderTop: SideTab = SideBarLocation::SideBarTop; break;

src/DockContainerWidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ class DockContainerWidgetPrivate
250250
* \param[out] CreatedWidget The widget created from parsed data or 0 if
251251
* the parsed widget was an empty splitter
252252
* \param[in] Testing If Testing is true, only the stream data is
253-
* parsed without modifiying anything.
253+
* parsed without modifying anything.
254254
*/
255255
bool restoreChildNodes(CDockingStateReader& Stream, QWidget*& CreatedWidget,
256256
bool Testing);

0 commit comments

Comments
 (0)