Hello all,

I've just started learning to program with KDE and Qt. For this purpose I 
thought about a simple GUI application to back up a selection of the 
configuration files in ~/.kde/config.

After reading in the source code of some existing KDE applications (mainly in 
g...@kde.org), I tried incorporating the tutorial on techbase.kde.org. However, 
I decided not to use the KXmlGui* objects, but to handcraft it on my own.

I managed to build the basic GUI, but before implementing slots, actions and 
the rest of the application, I want to fix the layout issues.

In the first tab I see two issues:
The first is, that the LineEdit for the directory is a little to short. I 
think, it would be nicer to be as long as the surrounding GroupBox.
The second is, that the space before and after the QLabel "Additional options 
passed to tar:" is huge. That should be a lot smaller and the big gab should 
be below the subsequent LineEdit at the bottom.
The same issue is on the second tab with the QLabel named "Output".

My question now: What is the best way of solving these issues?

I guess, I do not have to mention, that hard coding width and height of the 
objects is not an option.

The source code can be found here: http://paste.kde.org/95623/
There are three files (main.cpp, kbackupview.h and kbackupview.cpp), which I 
concatenated in the above paste for simplicity.

In case anybody finds some other things I did, which one should not do, please 
feel free to point these out. I'm not really afraid of rewriting almost 
everything. :-)

Cheers
Torbjoern

Attachment: signature.asc
Description: This is a digitally signed message part.

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Reply via email to