[Kmymoney-devel] work on models
Thomas Baumgart
thb at net-bembel.de
Tue Feb 16 11:24:36 CET 2010
On Monday 15 February 2010 19:19:32 Cristian Oneţ wrote:
> Hi,
>
> I've just committed a big patch that prepares the porting of the account
> tree to the model view framework. The code is not used yet (besides the
> account selector) since I still need to make some minor adjustments but if
> you would like to give it a try and help me spot some possible problems
> here is the patch that adds the committed accounts view above the old
> accounts view so they can be compared side by side. I would appreciate it
> if you would give it a try before I do the actual replacement.
>
> Thanks!
I just did an svn update and get the following error. Do I need to apply the
patch before I get this working?
Linking CXX shared module ../../lib/kmymoneywidgets.so
../../lib/libwidgets.a(widgets_automoc.o): In function
`KMyMoneyAccountTreeView::metaObject() const':
/home/thb/devel/kmymoney4/build/kmymoney/widgets/moc_kmymoneyaccounttreeview.cpp:61:
multiple definition of `KMyMoneyAccountTreeView::metaObject() const'
CMakeFiles/kmymoneywidgets.dir/kmymoneywidgets_automoc.o:/home/thb/devel/kmymoney4/build/kmymoney/widgets/moc_kmymoneyaccounttreeview.cpp:61:
first defined here
../../lib/libwidgets.a(widgets_automoc.o):(.data.rel.ro+0x50): multiple
definition of `KMyMoneyAccountTreeView::staticMetaObject'
CMakeFiles/kmymoneywidgets.dir/kmymoneywidgets_automoc.o:(.data.rel.ro+0x0):
first defined here
../../lib/libwidgets.a(widgets_automoc.o): In function
`AccountsViewFilterProxyModel::metaObject() const':
/home/thb/devel/kmymoney4/build/kmymoney/widgets/moc_kmymoneyaccounttreeview.cpp:146:
multiple definition of `AccountsViewFilterProxyModel::metaObject() const'
CMakeFiles/kmymoneywidgets.dir/kmymoneywidgets_automoc.o:/home/thb/devel/kmymoney4/build/kmymoney/widgets/moc_kmymoneyaccounttreeview.cpp:146:
first defined here
../../lib/libwidgets.a(widgets_automoc.o):(.data.rel.ro+0x60): multiple
definition of `AccountsViewFilterProxyModel::staticMetaObject'
CMakeFiles/kmymoneywidgets.dir/kmymoneywidgets_automoc.o:(.data.rel.ro+0x10):
first defined here
../../lib/libwidgets.a(widgets_automoc.o): In function
`KMyMoneyAccountTreeView::openObject(MyMoneyObject const&)':
/home/thb/devel/kmymoney4/build/kmymoney/widgets/moc_kmymoneyaccounttreeview.cpp:107:
multiple definition of `KMyMoneyAccountTreeView::openObject(MyMoneyObject
const&)'
CMakeFiles/kmymoneywidgets.dir/kmymoneywidgets_automoc.o:/home/thb/devel/kmymoney4/build/kmymoney/widgets/moc_kmymoneyaccounttreeview.cpp:107:
first defined here
../../lib/libwidgets.a(widgets_automoc.o): In function
`KMyMoneyAccountTreeView::openContextMenu(MyMoneyObject const&)':
/home/thb/devel/kmymoney4/build/kmymoney/widgets/moc_kmymoneyaccounttreeview.cpp:100:
multiple definition of
`KMyMoneyAccountTreeView::openContextMenu(MyMoneyObject const&)'
CMakeFiles/kmymoneywidgets.dir/kmymoneywidgets_automoc.o:/home/thb/devel/kmymoney4/build/kmymoney/widgets/moc_kmymoneyaccounttreeview.cpp:100:
first defined here
../../lib/libwidgets.a(widgets_automoc.o): In function
`KMyMoneyAccountTreeView::selectObject(MyMoneyObject const&)':
/home/thb/devel/kmymoney4/build/kmymoney/widgets/moc_kmymoneyaccounttreeview.cpp:93:
multiple definition of `KMyMoneyAccountTreeView::selectObject(MyMoneyObject
const&)'
CMakeFiles/kmymoneywidgets.dir/kmymoneywidgets_automoc.o:/home/thb/devel/kmymoney4/build/kmymoney/widgets/moc_kmymoneyaccounttreeview.cpp:93:
first defined here
../../lib/libwidgets.a(widgets_automoc.o): In function
`AccountsViewFilterProxyModel::qt_metacall(QMetaObject::Call, int, void**)':
/home/thb/devel/kmymoney4/build/kmymoney/widgets/moc_kmymoneyaccounttreeview.cpp:159:
multiple definition of
`AccountsViewFilterProxyModel::qt_metacall(QMetaObject::Call, int, void**)'
CMakeFiles/kmymoneywidgets.dir/kmymoneywidgets_automoc.o:/home/thb/devel/kmymoney4/build/kmymoney/widgets/moc_kmymoneyaccounttreeview.cpp:159:
first defined here
../../lib/libwidgets.a(widgets_automoc.o): In function
`AccountsViewFilterProxyModel::qt_metacast(char const*)':
/home/thb/devel/kmymoney4/build/kmymoney/widgets/moc_kmymoneyaccounttreeview.cpp:151:
multiple definition of `AccountsViewFilterProxyModel::qt_metacast(char
const*)'
CMakeFiles/kmymoneywidgets.dir/kmymoneywidgets_automoc.o:/home/thb/devel/kmymoney4/build/kmymoney/widgets/moc_kmymoneyaccounttreeview.cpp:151:
first defined here
../../lib/libwidgets.a(widgets_automoc.o): In function
`KMyMoneyAccountTreeView::qt_metacall(QMetaObject::Call, int, void**)':
/home/thb/devel/kmymoney4/build/kmymoney/widgets/moc_kmymoneyaccounttreeview.cpp:74:
multiple definition of
`KMyMoneyAccountTreeView::qt_metacall(QMetaObject::Call, int, void**)'
CMakeFiles/kmymoneywidgets.dir/kmymoneywidgets_automoc.o:/home/thb/devel/kmymoney4/build/kmymoney/widgets/moc_kmymoneyaccounttreeview.cpp:74:
first defined here
../../lib/libwidgets.a(widgets_automoc.o): In function
`KMyMoneyAccountTreeView::qt_metacast(char const*)':
/home/thb/devel/kmymoney4/build/kmymoney/widgets/moc_kmymoneyaccounttreeview.cpp:66:
multiple definition of `KMyMoneyAccountTreeView::qt_metacast(char const*)'
CMakeFiles/kmymoneywidgets.dir/kmymoneywidgets_automoc.o:/home/thb/devel/kmymoney4/build/kmymoney/widgets/moc_kmymoneyaccounttreeview.cpp:66:
first defined here
CMakeFiles/kmymoneywidgets.dir/kmymoneywidgets_automoc.o: In function
`AccountsViewFilterProxyModel::qt_metacall(QMetaObject::Call, int, void**)':
kmymoneywidgets_automoc.cpp:(.text+0x96): undefined reference to
`AccountsFilterProxyModel::qt_metacall(QMetaObject::Call, int, void**)'
CMakeFiles/kmymoneywidgets.dir/kmymoneywidgets_automoc.o: In function
`AccountsViewFilterProxyModel::qt_metacast(char const*)':
kmymoneywidgets_automoc.cpp:(.text+0x14e): undefined reference to
`AccountsFilterProxyModel::qt_metacast(char const*)'
CMakeFiles/kmymoneywidgets.dir/kmymoneywidgets_automoc.o:(.data.rel.ro+0x10):
undefined reference to `AccountsFilterProxyModel::staticMetaObject'
CMakeFiles/kmymoneywidgets.dir/kmymoneywidgets_automoc.o:
(.data.rel.ro._ZTV28AccountsViewFilterProxyModel[vtable for
AccountsViewFilterProxyModel]+0xc4): undefined reference to
`AccountsFilterProxyModel::lessThan(QModelIndex const&, QModelIndex const&)
const'
CMakeFiles/kmymoneywidgets.dir/kmymoneywidgets_automoc.o:
(.data.rel.ro._ZTV28AccountsViewFilterProxyModel[vtable for
AccountsViewFilterProxyModel]+0xc8): undefined reference to
`AccountsFilterProxyModel::acceptSourceItem(QModelIndex const&) const'
CMakeFiles/kmymoneywidgets.dir/kmymoneywidgets_automoc.o:
(.data.rel.ro._ZTI28AccountsViewFilterProxyModel[typeinfo for
AccountsViewFilterProxyModel]+0x8): undefined reference to `typeinfo for
AccountsFilterProxyModel'
CMakeFiles/kmymoneywidgets.dir/kmymoneyaccountcombo.o: In function
`AccountNamesFilterProxyModel::qt_metacall(QMetaObject::Call, int, void**)':
/home/thb/devel/kmymoney4/build/kmymoney/widgets/kmymoneyaccountcombo.moc:64:
undefined reference to
`AccountsFilterProxyModel::qt_metacall(QMetaObject::Call, int, void**)'
CMakeFiles/kmymoneywidgets.dir/kmymoneyaccountcombo.o: In function
`AccountNamesFilterProxyModel::qt_metacast(char const*)':
/home/thb/devel/kmymoney4/build/kmymoney/widgets/kmymoneyaccountcombo.moc:59:
undefined reference to `AccountsFilterProxyModel::qt_metacast(char const*)'
CMakeFiles/kmymoneywidgets.dir/kmymoneyaccountcombo.o: In function
`AccountNamesFilterProxyModel':
/home/thb/devel/kmymoney4/kmymoney/widgets/kmymoneyaccountcombo.cpp:51:
undefined reference to
`AccountsFilterProxyModel::AccountsFilterProxyModel(QObject*)'
/home/thb/devel/kmymoney4/kmymoney/widgets/kmymoneyaccountcombo.cpp:51:
undefined reference to
`AccountsFilterProxyModel::AccountsFilterProxyModel(QObject*)'
CMakeFiles/kmymoneywidgets.dir/kmymoneyaccountcombo.o: In function
`~AccountsFilterProxyModel':
/home/thb/devel/kmymoney4/kmymoney/models/accountsmodel.h:136: undefined
reference to `vtable for AccountsFilterProxyModel'
/home/thb/devel/kmymoney4/kmymoney/models/accountsmodel.h:136: undefined
reference to `vtable for AccountsFilterProxyModel'
CMakeFiles/kmymoneywidgets.dir/kmymoneyaccountcombo.o:(.data.rel.ro+0x0):
undefined reference to `AccountsFilterProxyModel::staticMetaObject'
CMakeFiles/kmymoneywidgets.dir/kmymoneyaccountcombo.o:
(.data.rel.ro._ZTV28AccountNamesFilterProxyModel[vtable for
AccountNamesFilterProxyModel]+0xbc): undefined reference to
`AccountsFilterProxyModel::filterAcceptsRow(int, QModelIndex const&) const'
CMakeFiles/kmymoneywidgets.dir/kmymoneyaccountcombo.o:
(.data.rel.ro._ZTV28AccountNamesFilterProxyModel[vtable for
AccountNamesFilterProxyModel]+0xc4): undefined reference to
`AccountsFilterProxyModel::lessThan(QModelIndex const&, QModelIndex const&)
const'
CMakeFiles/kmymoneywidgets.dir/kmymoneyaccountcombo.o:
(.data.rel.ro._ZTV28AccountNamesFilterProxyModel[vtable for
AccountNamesFilterProxyModel]+0xc8): undefined reference to
`AccountsFilterProxyModel::acceptSourceItem(QModelIndex const&) const'
CMakeFiles/kmymoneywidgets.dir/kmymoneyaccountcombo.o:
(.data.rel.ro._ZTI28AccountNamesFilterProxyModel[typeinfo for
AccountNamesFilterProxyModel]+0x8): undefined reference to `typeinfo for
AccountsFilterProxyModel'
CMakeFiles/kmymoneywidgets.dir/kmymoneyaccounttreeview.o: In function
`~AccountsFilterProxyModel':
/home/thb/devel/kmymoney4/kmymoney/models/accountsmodel.h:136: undefined
reference to `vtable for AccountsFilterProxyModel'
/home/thb/devel/kmymoney4/kmymoney/models/accountsmodel.h:136: undefined
reference to `vtable for AccountsFilterProxyModel'
/home/thb/devel/kmymoney4/kmymoney/models/accountsmodel.h:136: undefined
reference to `vtable for AccountsFilterProxyModel'
/home/thb/devel/kmymoney4/kmymoney/models/accountsmodel.h:136: undefined
reference to `vtable for AccountsFilterProxyModel'
/home/thb/devel/kmymoney4/kmymoney/models/accountsmodel.h:136: undefined
reference to `vtable for AccountsFilterProxyModel'
CMakeFiles/kmymoneywidgets.dir/kmymoneyaccounttreeview.o:/home/thb/devel/kmymoney4/kmymoney/models/accountsmodel.h:136:
more undefined references to `vtable for AccountsFilterProxyModel' follow
CMakeFiles/kmymoneywidgets.dir/kmymoneyaccounttreeview.o: In function
`AccountsViewFilterProxyModel':
/home/thb/devel/kmymoney4/kmymoney/widgets/kmymoneyaccounttreeview.cpp:114:
undefined reference to
`AccountsFilterProxyModel::AccountsFilterProxyModel(QObject*)'
CMakeFiles/kmymoneywidgets.dir/kmymoneyaccounttreeview.o: In function
`~AccountsFilterProxyModel':
/home/thb/devel/kmymoney4/kmymoney/models/accountsmodel.h:136: undefined
reference to `vtable for AccountsFilterProxyModel'
CMakeFiles/kmymoneywidgets.dir/kmymoneyaccounttreeview.o: In function
`AccountsViewFilterProxyModel':
/home/thb/devel/kmymoney4/kmymoney/widgets/kmymoneyaccounttreeview.cpp:114:
undefined reference to
`AccountsFilterProxyModel::AccountsFilterProxyModel(QObject*)'
CMakeFiles/kmymoneywidgets.dir/kmymoneyaccounttreeview.o: In function
`~AccountsFilterProxyModel':
/home/thb/devel/kmymoney4/kmymoney/models/accountsmodel.h:136: undefined
reference to `vtable for AccountsFilterProxyModel'
CMakeFiles/kmymoneywidgets.dir/kmymoneyaccounttreeview.o: In function
`AccountsViewFilterProxyModel::filterAcceptsRow(int, QModelIndex const&)
const':
/home/thb/devel/kmymoney4/kmymoney/widgets/kmymoneyaccounttreeview.cpp:153:
undefined reference to `AccountsFilterProxyModel::filterAcceptsRow(int,
QModelIndex const&) const'
../../lib/libwidgets.a(widgets_automoc.o): In function
`AccountsViewFilterProxyModel::qt_metacall(QMetaObject::Call, int, void**)':
widgets_automoc.cpp:(.text+0x1286): undefined reference to
`AccountsFilterProxyModel::qt_metacall(QMetaObject::Call, int, void**)'
../../lib/libwidgets.a(widgets_automoc.o): In function
`AccountsViewFilterProxyModel::qt_metacast(char const*)':
widgets_automoc.cpp:(.text+0x133e): undefined reference to
`AccountsFilterProxyModel::qt_metacast(char const*)'
../../lib/libwidgets.a(widgets_automoc.o):(.data.rel.ro+0x60): undefined
reference to `AccountsFilterProxyModel::staticMetaObject'
collect2: ld returned 1 exit status
make[2]: *** [lib/kmymoneywidgets.so] Error 1
make[1]: *** [kmymoney/widgets/CMakeFiles/kmymoneywidgets.dir/all] Error 2
make: *** [all] Error 2
--
Regards
Thomas Baumgart
GPG-FP: E55E D592 F45F 116B 8429 4F99 9C59 DB40 B75D D3BA
-------------------------------------------------------------
There are two rules for success in life:
Rule 1: Don't tell people everything you know.
-------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 224 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kmymoney-devel/attachments/20100216/49eb65a8/attachment-0001.sig
More information about the KMyMoney-devel
mailing list