[Panel-devel] CardLayout and PositionLayout
Petri Damstén
petri.damsten at dnainternet.net
Thu Oct 11 10:25:39 CEST 2007
Hi,
I was thinking about position layout. How about something like this:
#define MAX_COORD 100000
#define L 0
#define LP 1000000
#define R 2000000
#define RP 3000000
#define C 4000000
#define CP 5000000
#define T L
#define TP LP
#define B R
#define BP RP
or some enum or what ever...
And the you could set geometry like this:
setGeometry(C - 10, B - 10, C + 10, B);
20 pixel wide, 10 pixel tall widget centered to bottom of rectangle.
I think that would be easy to read and pretty flexible.
Petri
--
Customer: I'm running Windows Vista
Tech: Yes.
Customer: My computer isn't working now.
Tech: Yes, you said that.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/panel-devel/attachments/20071011/70f386ae/attachment.pgp
More information about the Panel-devel
mailing list