Commit [r9996] Maximize Restore History

I've gotten good enough at achieving results that I no longer believe the

stubborn holdouts are failures on my part to whip up just the right selector, or
to take the cascading aspect of the stylesheet into consideration. These are Qt
bugs, surely, like the bugs that require me to resort to QWidget hacks in the
first place (eg. the vast swath of the main window that doesn't belong to
*anything* more specific than QWidget)

This is round one of getting out the biggest hammer of all: subclassing or
replacing Qt widgets in order to introduce local stylesheets to fix things that
can't be fixed any other way.

* LineEdit is a subclass of QLineEdit. The only difference is it uses a local
stylesheet in its ctor to set its background to white. It responds to
everything else in the stylesheet perfectly well, but the background was
untouchable. Doing a stylesheet with "{background: blah}" always seems to
work when every other thing fails. This way at least we have the hack in one
place instead of 50+ places, and it will be vastly easier to maintain in the
event it needs to change for some reason.

* Preliminary style of QSpinBox block copied out of the tutorial. It doesn't
look like anything yet, but it proves I'm not going to have any bizarre
problems on this one when I get around to giving it a real style.

* Update templates/template.cpp to add an include line at the end for the .moc
file, because I always forget to add this to new files until I get the vtable
error.

dmmcintyr 2009-03-06

added /branches/qt4/src/gui/widgets/LineEdit.cpp
added /branches/qt4/src/gui/widgets/LineEdit.h
changed /branches/qt4/data/rosegarden.qss
changed /branches/qt4/src/gui/configuration/AudioConfigurationPage.cpp
changed /branches/qt4/templates/template.cpp
/branches/qt4/src/gui/widgets/LineEdit.cpp Diff Switch to side-by-side view
Loading...
/branches/qt4/src/gui/widgets/LineEdit.h Diff Switch to side-by-side view
Loading...
/branches/qt4/data/rosegarden.qss Diff Switch to side-by-side view
Loading...
/branches/qt4/src/gui/configuration/AudioConfigurationPage.cpp Diff Switch to side-by-side view
Loading...
/branches/qt4/templates/template.cpp Diff Switch to side-by-side view
Loading...