[Kde-bindings] KDE/kdebindings/qtruby
Richard Dale
Richard_Dale at tipitina.demon.co.uk
Fri Apr 7 18:24:58 UTC 2006
SVN commit 527327 by rdale:
* Added the dialogs/configdialog example
* Fixed bug in slot invocation marshalling where non-primitive
types, apart from QStrings weren't working
* Fixed crash caused by recently introduced 'fix',
deleting 'argv' passed to QApplication
CCMAIL: kde-bindings at kde.org
M +8 -0 ChangeLog
A rubylib/examples/dialogs/configdialog (directory)
A rubylib/examples/dialogs/configdialog/configdialog.rb
A rubylib/examples/dialogs/configdialog/images (directory)
AM rubylib/examples/dialogs/configdialog/images/config.png
AM rubylib/examples/dialogs/configdialog/images/query.png
AM rubylib/examples/dialogs/configdialog/images/update.png
A rubylib/examples/dialogs/configdialog/main.rb
A rubylib/examples/dialogs/configdialog/pages.rb
M +3 -0 rubylib/examples/itemviews/puzzle/main.rb
M +1 -0 rubylib/examples/itemviews/puzzle/mainwindow.rb
M +3 -1 rubylib/examples/itemviews/puzzle/puzzlewidget.rb
M +0 -4 rubylib/qtruby/handlers.cpp
M +1 -1 rubylib/qtruby/marshall_types.cpp
--- trunk/KDE/kdebindings/qtruby/ChangeLog #527326:527327
@@ -1,3 +1,11 @@
+2006-04-07 Richard Dale <rdale at foton.es>
+
+ * Added the dialogs/configdialog example
+ * Fixed bug in slot invocation marshalling where non-primitive
+ types, apart from QStrings weren't working
+ * Fixed crash caused by recently introduced 'fix',
+ deleting 'argv' passed to QApplication
+
2006-04-06 Richard Dale <rdale at foton.es>
* Marshalling of Value lists to Ruby wasn't working at all. The
** trunk/KDE/kdebindings/qtruby/rubylib/examples/dialogs/configdialog/images/config.png #property svn:mime-type
+ application/octet-stream
** trunk/KDE/kdebindings/qtruby/rubylib/examples/dialogs/configdialog/images/query.png #property svn:mime-type
+ application/octet-stream
** trunk/KDE/kdebindings/qtruby/rubylib/examples/dialogs/configdialog/images/update.png #property svn:mime-type
+ application/octet-stream
--- trunk/KDE/kdebindings/qtruby/rubylib/examples/itemviews/puzzle/main.rb #527326:527327
@@ -30,4 +30,7 @@
window = MainWindow.new
window.openImage("example.jpg")
window.show
+GC.disable
+# Qt::Internal::setDebug Qt::QtDebugChannel::QTDB_GC
+
app.exec
--- trunk/KDE/kdebindings/qtruby/rubylib/examples/itemviews/puzzle/mainwindow.rb #527326:527327
@@ -81,6 +81,7 @@
oldModel = @piecesList.model
newModel = PiecesModel.new(self)
@piecesList.model = newModel
+ oldModel.dispose
# srand(QCursor::pos().x() ^ QCursor::pos().y());
Kernel.srand
--- trunk/KDE/kdebindings/qtruby/rubylib/examples/itemviews/puzzle/puzzlewidget.rb #527326:527327
@@ -70,6 +70,7 @@
findPiece(targetSquare(event.pos)) == -1
@highlightedRect = targetSquare(event.pos())
+puts "dragMoveEvent event.dropAction = Qt::MoveAction"
event.dropAction = Qt::MoveAction
event.accept()
else
@@ -98,9 +99,10 @@
@highlightedRect = Qt::Rect.new()
update(square)
+puts "dropEvent event.dropAction = Qt::MoveAction"
event.dropAction = Qt::MoveAction
event.accept()
-
+p event.dropAction
if location == Qt::Point.new(square.x()/80, square.y()/80)
@inPlace += 1
if @inPlace == 25
--- trunk/KDE/kdebindings/qtruby/rubylib/qtruby/handlers.cpp #527326:527327
@@ -827,10 +827,6 @@
for(i = 0; argv[i]; i++) {
rb_ary_push(arglist, rb_str_new2(argv[i]));
}
-
- if (m->cleanup()) {
- delete argv;
- }
}
break;
default:
--- trunk/KDE/kdebindings/qtruby/rubylib/qtruby/marshall_types.cpp #527326:527327
@@ -472,7 +472,7 @@
break;
case Smoke::t_class:
case Smoke::t_voidp:
- _stack[i].s_voidp = p;
+ _stack[i].s_voidp = *(void **)p;
break;
}
}
More information about the Kde-bindings
mailing list