Re: KRichTextWidget

2011-01-31 Thread Thomas Lübking
Am 30.01.2011, 02:46 Uhr, schrieb Steven Sroka : > So there is no way to get the window to resize itself whenever a child > widget's size changes? No, of course that's possible. For one, the eventfilter can watch child resize events, but this is not what you want to do. Apparently the FocusIn/O

Re: KRichTextWidget

2011-01-29 Thread Steven Sroka
On 29 January 2011 18:49, Thomas Lübking wrote: > Am 30.01.2011, 00:37 Uhr, schrieb Steven Sroka : > >>> ... did you meanwhile try to invalidate the layout before adjusting the >>> size? > >> Yes, in my eventFilter() I put: >> >>             d->vWindowLayout->invalidate(); >>             >> d->de

Re: KRichTextWidget

2011-01-29 Thread Thomas Lübking
Am 30.01.2011, 00:37 Uhr, schrieb Steven Sroka : >> ... did you meanwhile try to invalidate the layout before adjusting the >> size? > Yes, in my eventFilter() I put: > > d->vWindowLayout->invalidate(); > > d->descriptionWidget->setFixedSize(d->descriptionWidget->sizeHint

Re: KRichTextWidget

2011-01-29 Thread Steven Sroka
I put: d->vWindowLayout->invalidate(); d->descriptionWidget->setFixedSize(d->descriptionWidget->sizeHint().width(), 28); adjustSize(); I put my KRichTextWidget and my QVBoxLayout in my d pointer so I can access them within my eventFilte

Re: KRichTextWidget

2011-01-29 Thread Thomas Lübking
Am 23.01.2011, 00:52 Uhr, schrieb Steven Sroka : > The relevant line of code is within in the borders below. ... did you meanwhile try to invalidate the layout before adjusting the size? Cheers, Thomas >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Re: KRichTextWidget

2011-01-22 Thread Steven Sroka
one see the actual sources somewhere? The relevant line of code is within in the borders below. void NewReminderWindow::setupObjects() { QWidget *mainWidget = new QWidget(); QVBoxLayout *vWindowLayout = new QVBoxLayout(); QHBoxLayout *hButtonLayout = new QHBoxLayout(); KRemi

Re: KRichTextWidget

2011-01-22 Thread Thomas Lübking
Am Fri, 21 Jan 2011 13:01:43 -0500 > Exactly what I was trying: > > //Shrink widget > d->descriptionWidget->setFixedSize(d->descriptionWidget->sizeHint().width(), > 28); you should only fix the height, not the width. (since the user shall likely still be able to resize the window) > But adjustSiz

Re: KRichTextWidget

2011-01-21 Thread Steven Sroka
>On 17 January 2011 16:14, Thomas Lübking wrote: > Am Monday 17 January 2011 schrieb Steven Sroka: >> I wanted to ask, what is the best way to resize a window when its' >> contents shrink. When I enlarge my KRichTextWidget the window grows >> larger to fit everyt

Re: KRichTextWidget

2011-01-17 Thread Thomas Lübking
Am Monday 17 January 2011 schrieb Steven Sroka: > I wanted to ask, what is the best way to resize a window when its' > contents shrink. When I enlarge my KRichTextWidget the window grows > larger to fit everything nicely in it, but when I shrink my > KRichTextWidget, the window

Re: KRichTextWidget

2011-01-17 Thread Steven Sroka
e_ the user started got involved in what they are typing. Thank you Parker and Thomas for that, btw.) > > > On 16 January 2011 12:52, Thomas Lübking wrote: >> Am Sunday 16 January 2011 schrieb Thomas Baumgart: >>> Yes, but all you need to do is place your logic to resize

Re: KRichTextWidget

2011-01-16 Thread John Tapsell
Maybe it should resize only if type something into the text widget, rather than just on focus? On 16 January 2011 12:52, Thomas Lübking wrote: > Am Sunday 16 January 2011 schrieb Thomas Baumgart: >> Yes, but all you need to do is place your logic to resize the >> KRichText

Re: KRichTextWidget

2011-01-16 Thread Thomas Lübking
Am Sunday 16 January 2011 schrieb Thomas Baumgart: > Yes, but all you need to do is place your logic to resize the > KRichTextWidget into the overridden "void QWidget::focusInEvent ( > QFocusEvent * event )" method and you should be set. This method will only > be called if

Re: KRichTextWidget

2011-01-15 Thread Thomas Baumgart
Hi, on Sunday 16 January 2011 06:24:54 Steven Sroka wrote: > On 15 January 2011 23:44, Parker Coates wrote: > > On Sat, Jan 15, 2011 at 23:20, Steven Sroka wrote: > >> Is there some way to know if a user has clicked a KRichTextWidget > >> widget? I would like to cr

Re: KRichTextWidget

2011-01-15 Thread Steven Sroka
On 15 January 2011 23:44, Parker Coates wrote: > On Sat, Jan 15, 2011 at 23:20, Steven Sroka  wrote: >> Is there some way to know if a user has clicked a KRichTextWidget >> widget? I would like to create a KRichTextWidget that is small in size >> at first because it is optio

Re: KRichTextWidget

2011-01-15 Thread Parker Coates
On Sat, Jan 15, 2011 at 23:20, Steven Sroka wrote: > Is there some way to know if a user has clicked a KRichTextWidget > widget? I would like to create a KRichTextWidget that is small in size > at first because it is optional if the user wants to type some data > into it. If indeed t

KRichTextWidget

2011-01-15 Thread Steven Sroka
Is there some way to know if a user has clicked a KRichTextWidget widget? I would like to create a KRichTextWidget that is small in size at first because it is optional if the user wants to type some data into it. If indeed the user does want to type into it, I would like the KRichTextWidget to