aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/autoq3d
diff options
context:
space:
mode:
authorrakuco <rakuco@FreeBSD.org>2012-05-20 09:51:05 +0800
committerrakuco <rakuco@FreeBSD.org>2012-05-20 09:51:05 +0800
commit89a32a7513ba03d4e7dfc5f522b0d5a522582160 (patch)
tree2db0972e626fa786729e7d2d24fee680dbcad6b5 /graphics/autoq3d
parente108e9a4578dfc03bd97d73a725f22ad7dedf691 (diff)
downloadfreebsd-ports-gnome-89a32a7513ba03d4e7dfc5f522b0d5a522582160.tar.gz
freebsd-ports-gnome-89a32a7513ba03d4e7dfc5f522b0d5a522582160.tar.zst
freebsd-ports-gnome-89a32a7513ba03d4e7dfc5f522b0d5a522582160.zip
Make the port build with gcc 4.6 (and possibly other compilers).
Use QFoo(...) instead of QFoo::QFoo(...), which is a wrong way of calling the constructor.
Diffstat (limited to 'graphics/autoq3d')
-rw-r--r--graphics/autoq3d/files/patch-src__cmds__cmds.cpp15
-rw-r--r--graphics/autoq3d/files/patch-src__fgui__cadform.cpp24
2 files changed, 39 insertions, 0 deletions
diff --git a/graphics/autoq3d/files/patch-src__cmds__cmds.cpp b/graphics/autoq3d/files/patch-src__cmds__cmds.cpp
new file mode 100644
index 000000000000..61759eb7f630
--- /dev/null
+++ b/graphics/autoq3d/files/patch-src__cmds__cmds.cpp
@@ -0,0 +1,15 @@
+--- src/cmds/cmds.cpp~ 2012-05-19 22:44:14.000000000 -0300
++++ src/cmds/cmds.cpp 2012-05-19 22:44:25.000000000 -0300
+@@ -89,9 +89,9 @@
+
+
+ QPalette newPalette = QPalette();
+- newPalette.setColor(QPalette::Background, QColor::QColor(170,170,255));
+- newPalette.setColor(QPalette::Foreground, QColor::QColor(0,0,0));
+- newPalette.setColor(QPalette::Base, QColor::QColor(170,170,255));
++ newPalette.setColor(QPalette::Background, QColor(170,170,255));
++ newPalette.setColor(QPalette::Foreground, QColor(0,0,0));
++ newPalette.setColor(QPalette::Base, QColor(170,170,255));
+
+ setPalette(newPalette);
+
diff --git a/graphics/autoq3d/files/patch-src__fgui__cadform.cpp b/graphics/autoq3d/files/patch-src__fgui__cadform.cpp
new file mode 100644
index 000000000000..833f2f7db9bb
--- /dev/null
+++ b/graphics/autoq3d/files/patch-src__fgui__cadform.cpp
@@ -0,0 +1,24 @@
+--- src/fgui/cadform.cpp~ 2012-05-19 22:45:11.000000000 -0300
++++ src/fgui/cadform.cpp 2012-05-19 22:46:08.000000000 -0300
+@@ -475,9 +475,9 @@
+
+
+ QPalette newPalette = palette();
+- newPalette.setColor(QPalette::Background, QColor::QColor(170,170,255));
+- newPalette.setColor(QPalette::Foreground, QColor::QColor(0,0,0));
+- newPalette.setColor(QPalette::Base, QColor::QColor(170,170,255));
++ newPalette.setColor(QPalette::Background, QColor(170,170,255));
++ newPalette.setColor(QPalette::Foreground, QColor(0,0,0));
++ newPalette.setColor(QPalette::Base, QColor(170,170,255));
+
+
+
+@@ -800,7 +800,7 @@
+ w->GLThisArea->cscalari=hcmd->cscalari;
+ w->GLThisArea->View=View;
+
+- w->setWindowTitle(QString::QString(tr("ViewPort-%1")).arg(numDoc++));w->setWindowIcon( QPixmap(ProgramPath+"images/document.png") );
++ w->setWindowTitle(QString(tr("ViewPort-%1")).arg(numDoc++));w->setWindowIcon( QPixmap(ProgramPath+"images/document.png") );
+ w->show();
+ QWidgetList windoL=ws->windowList(QWorkspace::CreationOrder);
+ if ( windoL.count()==1){