Remove Qt's libraries dependency from wxBase

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxQT@77293 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
Fix SIGSEGV on children destruction (frame and msgdlg)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxQT@77294 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
Removed dummy Graphic Context in wxQT

If available, use Cairo like in wxGTK and other ports, but cairo qt surface not implemented yet.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxQT@77295 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
Added basic Cairo paint DC for wxQT (tentative)

This is a very minimal approach (drawing to a cairo image surface and not a qt surface), but will help to avoid crashing (for example, in drawing sample, even if qt surface is not available).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxQT@77296 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
Implement missing font info constructor in wxQT

(This is also needed by the drawing sample)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxQT@77297 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
Implement missing font family, weight & style getters

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxQT@77298 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
Fix font weight and underline setters

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxQT@77299 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
Fix font face name getter (using actual info from Qt)

It was returning an empty string (if no facename was given at the font ctor), and that caused a segmentation fault in cairo_show_text

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxQT@77300 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
Fix wxQtDCImpl::GetHandle() to return QPainter

This is needed by the grahpic context

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxQT@77301 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
Fix cairo image buffer paint DC in wxQT

* do not destroy the image as it holds the pixel data buffer
* hence, do not create a new image as it isn't necessary

This solution is similar to cairo qt surface internals, that stores image and image_equiv -the cairo image surface-.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxQT@77302 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
Implemented wxBitmap::GetRawData in wxQT (similar to wxGTK)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxQT@77303 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
Removed GetHandle (virtual) call from wxWindow dtor in wxQT

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxQT@77304 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
Postpone the shortcut handler destruction to avoid seg. faults

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxQT@77305 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
Fix missing __WXQT__ guard in include, thanks @seandepagnier

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxQT@77306 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
Fix uninitialized value causing 'Painter not active', thanks @seandepagnier

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxQT@77307 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
Add sanity checks for Qt event/signal handlers

 * Use the window pointer to detect if the class is dead or alive to avoid crashing caused by deleteLater() being processed in the event loop
 * Print debug messages if the handler (wxWindow) is NULL (deleted), just for safety and debugging as that code should not be reached if Qt signals are blocked or Qt events are filtered / removed (comming in future commits)
 * Set the window pointer immediatelly in wxQt helper template constructor to avoid problems if wxWindow base class was not fully initialized and a Qt event/signal is received

GetHandler will return NULL if the wxWindow object was deleted, so it should be verified in the signal handlers in each derived class (events are automatically verified by the helper)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxQT@77308 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
Avoid crash if a control is deleted and a signal is received

For example, this could happen if the wxNotebook was deleted and there were pending singals (i.e., emmited due the removal of the current page).
This should not happen, signals will be blocked in the destructor in following commits, but this is in place just in case to avoid segmentation fauls (debug message will be print by the wxQT helper)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxQT@77309 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
Block Qt signals if widget is being deleted

This avoid most of the problems caused by receiving a signal if the wxWindow is deleted (for example, notebook changing the default page, see previous commits).
I've tried two other methods without success:
 * m_qtWindow::disconnect() should do the disconnection of all signals but returns false
 * QApplication::instance()->removePostedEvents(m_qtWindow); seems to have no effect (also, installEventFilter could be used)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxQT@77310 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
Derive list control from wxListCtrlBase in wxQT

This fixes missing methods compilation errors: EnableBellOnNoMatch, EnableAlternateRowColours, AppendColumn and OnGetItemAttr

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxQT@77311 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
Use the correct widget QTreeWidget and helper for list control

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/wxQT@77312 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775