Commit 6b179728 authored by Frederik Schwarzer's avatar Frederik Schwarzer
Browse files

fix some typos found while looking around

parent d7406ea4
......@@ -105,15 +105,15 @@ weight: 20
Tired of writing your own widgets for your Qt projects? Use
<a href="https://api.kde.org/frameworks/kwidgetsaddons/html/">KWidgetsAddons</a>! Want a flexible configuration system?
Use <a href="https://api.kde.org/frameworks/kconfig/html/">KConfig</a>! The <a href="/products/frameworks/">KDE Frameworks</a>
suite solves most of the problems you have had deal with when building Qt applications. It will also integrate perfectly into
your Qt projects and the API will be familiar as it based on the same interfaces that make up the majority of existing
suite solves most of the problems you have to deal with when building Qt applications. It will also integrate perfectly into
your Qt projects and the API will be familiar as it is based on the same interfaces that make up the majority of existing
Qt applications.
</p>
<h3>Network Transparancy</h3>
<p>
The increase in connectivity of today's world makes <a href="https://api.kde.org/frameworks/kio/html/">KIO</a> an essential
part of your toolset. KIO allows Qt applications to connect to remote shares as if they were on local computers, making
accessing server hosted files and directories transparent and easy for your users. KIO supports ftp, ssh, http, webdav,
accessing server-hosted files and directories transparent and easy for your users. KIO supports ftp, ssh, http, webdav,
fish, samba, and many more protocols.
</p>
<div class="d-flex justify-content-center mt-5">
......
......@@ -8,7 +8,7 @@ description: >
## Abstract
Your first program shall greet the world with a friendly "Hello World!". For that, we will use a [KMessageBox](docs:kwidgetsaddons;KMessageBox) and customise one of its buttons.
Your first program shall greet the world with a friendly "Hello World!". For that, we will use a [KMessageBox](docs:kwidgetsaddons;KMessageBox) and customize one of its buttons.
![](result.png)
......@@ -46,7 +46,7 @@ More information on internalization can be found in the [i18n](https://techbase.
{{< readfile file="/content/docs/getting-started/hello_world/main3.cpp" highlight="cpp" >}}
Then we come to [QCommandLineParser ](https://doc.qt.io/qt-5/qcommandlineparser.html). This is the class one would use to specify command line flags to, for example, open the program with a specific file. However, in this tutorial, we simply initialise it with the [KAboutData](docs:kcoreaddons;KAboutData) object we created before so we can use the `--version` or `--author` flags that are provided by default by Qt.
Then we come to [QCommandLineParser ](https://doc.qt.io/qt-5/qcommandlineparser.html). This is the class one would use to specify command line flags to, for example, open the program with a specific file. However, in this tutorial, we simply initialize it with the [KAboutData](docs:kcoreaddons;KAboutData) object we created before so we can use the `--version` or `--author` flags that are provided by default by Qt.
We're all done as far as the code is concerned. Now to build it and try it out.
......
......@@ -174,7 +174,7 @@ fileName.clear();
Otherwise, we continue with opening the file.
The data that `storedGet()` successfully downloaded, in this case the contents of our text file, is stored in the data member of a [KIO::StoredTransferJob](docs:kio;KIO::StoredTransferJob) class. But in order to display the contents of the file at text, we must use a [QTextStream](https://doc.qt.io/qt-5/qtextstream.html). We create one by passing the the data of the `StoredTransferJob` to its constructor and then call its `readAll()` function to get the text from the file. This is then passed to the `setPlainText()` function of our text area.
The data that `storedGet()` successfully downloaded, in this case the contents of our text file, is stored in the data member of a [KIO::StoredTransferJob](docs:kio;KIO::StoredTransferJob) class. But in order to display the contents of the file at text, we must use a [QTextStream](https://doc.qt.io/qt-5/qtextstream.html). We create one by passing the data of the `StoredTransferJob` to its constructor and then call its `readAll()` function to get the text from the file. This is then passed to the `setPlainText()` function of our text area.
{{< alert title="Note" color="info" >}}
......
......@@ -38,8 +38,8 @@ We are going to install our UI .rc file under the component `texteditor`, so `ma
{{< readfile file="/content/docs/getting-started/using_actions/mainwindow.h" highlight="cpp" >}}
Only a function void `setupActions()` has been added which will do all the work setting up the QActions.

Only a function `void setupActions()` has been added which will do all the work setting up the QActions.
### mainwindow.cpp
{{< readfile file="/content/docs/getting-started/using_actions/mainwindow.cpp" highlight="cpp" >}}
......
......@@ -10,7 +10,7 @@ Inline messages provide an immediate way for you to notify your users about some
## Basic inline message
`Kirigami.InlineMessage` components have two important properties to be mindful of:
- `visible`: by default this is set to false, so that the message only appears when you explicitly want it to. This can be overriden if you wish by setting it to true. When a hidden inline message is set to be visible, you get a nice animation.
- `visible`: by default this is set to false, so that the message only appears when you explicitly want it to. This can be overridden if you wish by setting it to true. When a hidden inline message is set to be visible, you get a nice animation.
- `text`: here is where you set the text of your inline message.
{{< sections >}}
......
......@@ -136,7 +136,7 @@ ListViews also support header components with the `header` property, and Kirigam
An interesting property of the list view is `headerPositioning`. This affects the way that our header will move when we are interacting with a long list view that expands beyond the height of the page. `headerPositioning` can be set to three different settings:
- `ListView.OverlayHeader`: In this setting, the header will contract once we start scrolling down but will remain visible in a more compact state.
- `ListView.PullBackHeader`: The header will disappear as we scroll down, but will reappear as we scroll back up, even if we haven'tyet reached the top of the list view.
- `ListView.PullBackHeader`: The header will disappear as we scroll down, but will reappear as we scroll back up, even if we haven't yet reached the top of the list view.
- `ListView.InlineHeader`: The header will act like a part of the listview and remain at the top of the listview.
{{< sections >}}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment