[kgraphviewer-devel] [KGraphViewer/libkgraphviz] 7388f64: Introduce DotGraphPrivate in dotgraph_p.h
Kevin Funk
krf at electrostorm.net
Tue Dec 14 18:13:29 CET 2010
A src/kgraphviz/dotgraph_p.h [License: Trivialfile.]
commit 7388f6407848046b7c2e773abd3237ee6b9d8ac2
Author: Kevin Funk <krf at electrostorm.net>
Date: Tue Dec 14 16:11:51 2010 +0100
Introduce DotGraphPrivate in dotgraph_p.h
diff --git a/src/kgraphviz/dotgraph.cpp b/src/kgraphviz/dotgraph.cpp
index c8f1b8b..eac87e9 100644
--- a/src/kgraphviz/dotgraph.cpp
+++ b/src/kgraphviz/dotgraph.cpp
@@ -17,6 +17,7 @@
*/
#include "dotgraph.h"
+#include "dotgraph_p.h"
#include "graphexporter.h"
#include "canvasedge.h"
diff --git a/src/kgraphviz/dotgraph.h b/src/kgraphviz/dotgraph.h
index fa82f7c..533e13c 100644
--- a/src/kgraphviz/dotgraph.h
+++ b/src/kgraphviz/dotgraph.h
@@ -40,7 +40,9 @@ class Agraph_t;
namespace KGraphViz
{
-
+
+class DotGraphPrivate;
+
/**
* A class representing the model of a GraphViz dot graph
*/
@@ -136,6 +138,9 @@ private Q_SLOTS:
void slotDotRunningError(QProcess::ProcessError);
private:
+ Q_DECLARE_PRIVATE(DotGraph);
+ DotGraphPrivate* d_ptr;
+
unsigned int cellNumber(int x, int y);
void computeCells();
QByteArray getDotResult(int exitCode, QProcess::ExitStatus exitStatus);
diff --git a/src/kgraphviz/dotgraph_p.h b/src/kgraphviz/dotgraph_p.h
new file mode 100644
index 0000000..1369afb
--- /dev/null
+++ b/src/kgraphviz/dotgraph_p.h
@@ -0,0 +1,32 @@
+/*
+ Copyright (C) 2010 Kevin Funk <krf at electrostorm.net>
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Library General Public License for more details.
+
+ You should have received a copy of the GNU Library General Public License
+ along with this library; see the file COPYING.LIB. If not, write to
+ the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA.
+*/
+
+#ifndef DOTGRAPH_P_H
+#define DOTGRAPH_P_H
+
+namespace KGraphViz
+{
+
+class DotGraphPrivate
+{
+};
+
+}
+
+#endif
More information about the kgraphviewer-devel
mailing list