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 @TEMPLATE = app CAIROINCL = $$system(pkg-config cairo --cflags) CAIROLIBS = $$system(pkg-config cairo --libs) QMAKE_CXXFLAGS += $$CAIROINCL LIBS += $$CAIROLIBS # Input HEADERS += qcairowidget.h mainwindow.h qkapow.h SOURCES += main.cpp mainwindow.cpp qcairowidget.cpp qkapow.cpp FORMS += controlwidgetbase.ui OBJECTS_DIR = .tmp MOC_DIR = .tmp @ 1.1 log @Initial commit of qcairo demo as contributed by Zack Rusin @ text @d10 2 a11 2 HEADERS += qcairo.h mainwindow.h SOURCES += main.cpp qcairo.cpp mainwindow.cpp @