(→Why KXmlGuiWindow???) |
|||
| Line 14: | Line 14: | ||
--[[User:Powerfox|Powerfox]] 00:29, 29 July 2007 (CEST) | --[[User:Powerfox|Powerfox]] 00:29, 29 July 2007 (CEST) | ||
: Why? This page is the base for the next part, "using KAction". Giving a correct skeleton now can save some work later. -- [[user:Pino|pino]] 15:52, 29 November 2007 (CET) | : Why? This page is the base for the next part, "using KAction". Giving a correct skeleton now can save some work later. -- [[user:Pino|pino]] 15:52, 29 November 2007 (CET) | ||
| + | |||
| + | == Example code line numbering == | ||
| + | |||
| + | Hello, I am working through this tutorial and am having a problem cutting and pasting the code from this page to my text-editor. The line number information is copied with each selection. This means that I have to go back through it and delete the numbers 1, 2, 3, 4, 5.... (and extra spaces and such) for each line. the first tutorial IMO seemed to do this in a more copy-paste friendly way. Note I do like having the line numbers, but I would also like to be able to copy-paste the code easily. | ||
I had a couple of problems:
In order to make cmake find my installed header files, I needed to specify -DCMAKE_INSTALL_PREFIX=/home/kde-devel/kde
and still it wouldn't compile. I had to change it to use KXmlGuiWindow instead of KMainWindow as it didn't seem to be able to use setupGUI();
/Sune
Hi! I can't understand why KXmlGuiWindow is used. There are no any xml files. And it's used in the tutorial as KMainWindow. Also the title is "How To Use KMainWindow". So, from my point of view it needs to be improved. --Powerfox 00:29, 29 July 2007 (CEST)
Hello, I am working through this tutorial and am having a problem cutting and pasting the code from this page to my text-editor. The line number information is copied with each selection. This means that I have to go back through it and delete the numbers 1, 2, 3, 4, 5.... (and extra spaces and such) for each line. the first tutorial IMO seemed to do this in a more copy-paste friendly way. Note I do like having the line numbers, but I would also like to be able to copy-paste the code easily.