Commit 4efc6324 authored by Bharadwaj Raju's avatar Bharadwaj Raju 📚 Committed by Carl Schwan
Browse files

Fix incorrect code in using_actions.md.

It is said that no changes to `main.cpp` are required, but actually since we are going to install UI rc file under the component `texteditor`, and `main.cpp` says `mainwindow`, the final build will fail to find the rc file.

Thanks to @swaptr on Matrix for pointing this out.
parent bc532ad3
......@@ -22,7 +22,17 @@ A [QAction ](https://doc.qt.io/qt-5/qaction.html) is an object which contains al
### main.cpp
This time, nothing changed in `main.cpp`.
We are going to install our UI .rc file under the component `texteditor`, so `main.cpp` should be changed to reflect that change in name.
```c++
// ...
KLocalizedString::setApplicationDomain("texteditor");
KAboutData aboutData(
// The program name used internally. (componentName)
QStringLiteral("texteditor"),
// ...
```
### mainwindow.h
......
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