[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: qt-copy updated
From:       Bradley T Hughes <bhughes () trolltech ! com>
Date:       2001-08-30 6:51:47
[Download RAW message or body]

On Wednesday 29 August 2001 18:21, Simon Hausmann wrote:
> On Wed, Aug 29, 2001 at 06:14:11PM +0200, Bradley T Hughes wrote:
> > On Wednesday 29 August 2001 17:47, Simon Hausmann wrote:
> > > On Wed, Aug 29, 2001 at 10:27:45AM -0500, Scott Manson wrote:
> > > > We also have to decide on a "substitute" QWidget::GUIStyle() as
> > > > this is depreciated.
> > >
> > > I think it is safe to remove any code checking for
> > > style().guiStyle() == Windows . guiStyle() == Windows is never
> > > fullfilled on Qt/X11, as far as I can see (see #ifdef in qstyle.cpp
> > > in qt2) . So it seems safe to go for the motif variant, always.
> >
> > This is not correct.  The default for X11 is Motif, but if you
> > explicitly use Windows/Platinum style (or another Windows style
> > derivative), then the GUI style enum would be set to WindowsStyle.
>
> Ooops, I indeed missed the windows style calling the other style
> constructor %-}
>
> So is inherits( "QWindowsStyle" ) a valid replacement then?

style().styleHint(QStyle::SH_GUISTyle) == Qt::WindowsStyle

yes, it is more ugly and verbose, but that is the whole point.  Such 
checks shouldn't be made anymore ;)

> Simon

-- 
--
Bradley T. Hughes <bhughes@trolltech.com>
Trolltech AS - Waldemar Thranes gt. 98B N-0175 Oslo, Norway
Office: +47 21604892
Mobile: +47 92019781

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic