head 1.2; access; symbols; locks; strict; comment @ * @; 1.2 date 2005.07.01.19.49.07; author cworth; state Exp; branches; next 1.1; commitid 3eec42c59e334567; 1.1 date 2005.01.25.20.24.22; author cworth; state Exp; branches; next ; desc @@ 1.2 log @ From 2005-01-25 Zack Rusin : * .cvsignore: * controlwidgetbase.ui: * mainwindow.cpp: * mainwindow.h: * qcairo.cpp: * qcairo.h: * qcairo.pro: * qcairowidget.cpp: * qcairowidget.h: * qkapow.cpp: * qkapow.h: 1) I created a QCairoWidget which has a virtual void cairoPaint(cairo_t *) method which essentially replaces the QWidget::paintEvent. It's done essentially to enable people to just take the widget, stick it in their app and just use Cairo (either duble-buffered or not). 2) Instead of the old demo code it uses now kapow. It's a little bit more attractive and nicely shows how to use QCairoWidget. @ text @#ifndef MAINWINDOW_H #define MAINWINDOW_H #include class QKapow; class ControlWidgetBase; class MainWindow : public QMainWindow { Q_OBJECT public: MainWindow(); private slots: void updateWidget(); private: void createGUI(); void createActions(); private: QKapow *m_qcairo; ControlWidgetBase *m_control; }; #endif @ 1.1 log @Initial commit of qcairo demo as contributed by Zack Rusin @ text @d6 1 a6 1 class QCairo; d22 1 a22 1 QCairo *m_qcairo; @