Changeset View
Changeset View
Standalone View
Standalone View
examples/DesignerWidget.cpp
Show All 12 Lines | 1 | /* This file is part of the KDE project | |||
---|---|---|---|---|---|
13 | 13 | | |||
14 | You should have received a copy of the GNU Library General Public License | 14 | You should have received a copy of the GNU Library General Public License | ||
15 | along with this library; see the file COPYING.LIB. If not, write to | 15 | along with this library; see the file COPYING.LIB. If not, write to | ||
16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
17 | Boston, MA 02110-1301, USA. | 17 | Boston, MA 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #include "DesignerWidget.h" | 20 | #include "DesignerWidget.h" | ||
21 | #include "KReportExampleData.h" | 21 | #include "KReportExampleDataSource.h" | ||
22 | 22 | | |||
23 | #include <KReportDesigner> | 23 | #include <KReportDesigner> | ||
24 | #include <KReportDesignerSectionDetail> | 24 | #include <KReportDesignerSectionDetail> | ||
25 | #include <KReportDesignerSection> | 25 | #include <KReportDesignerSection> | ||
26 | 26 | | |||
27 | #include <QAction> | 27 | #include <QAction> | ||
28 | #include <QActionGroup> | 28 | #include <QActionGroup> | ||
29 | #include <QDockWidget> | 29 | #include <QDockWidget> | ||
Show All 9 Lines | 37 | { | |||
39 | setWidget(m_reportDesigner); | 39 | setWidget(m_reportDesigner); | ||
40 | 40 | | |||
41 | connect(m_reportDesigner, SIGNAL(itemInserted(QString)), | 41 | connect(m_reportDesigner, SIGNAL(itemInserted(QString)), | ||
42 | this, SLOT(slotItemInserted(QString))); | 42 | this, SLOT(slotItemInserted(QString))); | ||
43 | connect(m_reportDesigner, SIGNAL(propertySetChanged()), | 43 | connect(m_reportDesigner, SIGNAL(propertySetChanged()), | ||
44 | this, SLOT(slotDesignerPropertySetChanged())); | 44 | this, SLOT(slotDesignerPropertySetChanged())); | ||
45 | connect(m_reportDesigner, SIGNAL(dirty()), this, SLOT(designDirty())); | 45 | connect(m_reportDesigner, SIGNAL(dirty()), this, SLOT(designDirty())); | ||
46 | 46 | | |||
47 | m_reportDesigner->setReportData(new KReportExampleData); | 47 | m_reportDesigner->setDataSource(new KReportExampleDataSource); | ||
48 | } | 48 | } | ||
49 | 49 | | |||
50 | ReportDesignerWidget::~ReportDesignerWidget() | 50 | ReportDesignerWidget::~ReportDesignerWidget() | ||
51 | { | 51 | { | ||
52 | } | 52 | } | ||
53 | 53 | | |||
54 | QToolBar* ReportDesignerWidget::createMainToolBar(QMainWindow *mainWindow) | 54 | QToolBar* ReportDesignerWidget::createMainToolBar(QMainWindow *mainWindow) | ||
55 | { | 55 | { | ||
▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines |