annotate cpp/qt_gui/UrlHandler_shell.h @ 248:7664de4a55e5

Fixed #23. QtD_QObjectEntity is not created dynamically for shell classes any more. Class initialization is now performed by static constructors. When wrapping QObjects returned from functions, their run-time types are now taken into account. QObjects are allocated on GC heap, a doubly-linked list is used to prevent them from been collected (arguably a better solution than allocating on C heap and adding GC ranges) Minor changes (including unnecessary).
author maxter
date Thu, 20 Aug 2009 14:47:17 +0000
parents 7bc921c7100a
children 37eed70de029
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
149
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
1 #include <QUrl>
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
2 #include <QObjectEntity.h>
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
3
248
7664de4a55e5 Fixed #23.
maxter
parents: 149
diff changeset
4 class UrlHandler : public QObject, public QtD_QObjectEntity
149
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
5 {
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
6 Q_OBJECT
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
7
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
8 public:
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
9 UrlHandler(void *d_ptr, QObject *parent = 0);
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
10
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
11 public slots:
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
12 void handleUrl(const QUrl &url);
7bc921c7100a QDesktopServices.setUrlHandler - temporary solution
eldar
parents:
diff changeset
13 };