2026-05-24 23:21:33 +02:00
|
|
|
QT += widgets sql
|
|
|
|
|
#requires(qtConfig(treeview))
|
|
|
|
|
|
|
|
|
|
CONFIG += c++11 link_pkgconfig
|
|
|
|
|
#wPKGCONFIG += dtkwidget dtkwm
|
|
|
|
|
|
|
|
|
|
include($$PWD/gui/SARibbon/importSARibbonBarLib.pri)
|
|
|
|
|
|
|
|
|
|
INCLUDEPATH = \
|
|
|
|
|
gui \
|
|
|
|
|
widget \
|
|
|
|
|
data \
|
|
|
|
|
utils \
|
2026-06-01 10:02:36 +02:00
|
|
|
gui/qtRibbonGUI \
|
|
|
|
|
src/gui/forms \
|
|
|
|
|
src/models
|
2026-05-24 23:21:33 +02:00
|
|
|
|
2026-06-01 10:02:36 +02:00
|
|
|
FORMS = src/gui/mainwindow.ui \
|
|
|
|
|
src/gui/forms/formbaselist.ui \
|
|
|
|
|
src/gui/forms/formbudget.ui \
|
|
|
|
|
src/gui/forms/formbudgetlist.ui \
|
2026-05-24 23:21:33 +02:00
|
|
|
widget/widgetcomboboxpopuptable.ui \
|
2026-06-01 10:02:36 +02:00
|
|
|
src/gui/forms/formthird.ui \
|
|
|
|
|
src/gui/forms/formproduct.ui \
|
|
|
|
|
src/gui/forms/dialogcreateenterprise.ui \
|
|
|
|
|
src/gui/forms/dialogopencompany.ui \
|
|
|
|
|
src/gui/forms/formelementlist.ui \
|
|
|
|
|
src/gui/forms/formthirdlist.ui \
|
|
|
|
|
src/gui/forms/forminvoiceinlist.ui \
|
|
|
|
|
src/gui/forms/formbase.ui
|
2026-05-24 23:21:33 +02:00
|
|
|
|
|
|
|
|
|
2026-06-01 10:02:36 +02:00
|
|
|
HEADERS = src/gui/mainwindow.h \
|
|
|
|
|
src/gui/forms/formbaselist.h \
|
|
|
|
|
src/gui/forms/formbudgetlist.h \
|
|
|
|
|
src/models/treemodel.h \
|
2026-05-24 23:21:33 +02:00
|
|
|
itemnumberdelegate.h \
|
|
|
|
|
qmtreeview.h \
|
|
|
|
|
itemtextdelegate.h \
|
|
|
|
|
header.h \
|
|
|
|
|
mapplication.h \
|
2026-06-01 10:02:36 +02:00
|
|
|
src/gui/forms/formbudget.h \
|
2026-05-24 23:21:33 +02:00
|
|
|
utils/fiebdc.h \
|
|
|
|
|
utils/filterlineedit.h \
|
|
|
|
|
utils/filtertableheader.h \
|
|
|
|
|
widget/widgetcomboboxpopuptable.h \
|
2026-06-01 10:02:36 +02:00
|
|
|
src/gui/forms/formthird.h \
|
2026-05-24 23:21:33 +02:00
|
|
|
widget/avatarwidget.h \
|
2026-06-01 10:02:36 +02:00
|
|
|
src/gui/forms/formproduct.h \
|
2026-05-24 23:21:33 +02:00
|
|
|
data/sqltable.h \
|
|
|
|
|
itemrichtextdelegate.h \
|
2026-06-01 10:02:36 +02:00
|
|
|
src/gui/forms/dialogcreateenterprise.h \
|
2026-05-24 23:21:33 +02:00
|
|
|
utils/frameless.h \
|
2026-06-01 10:02:36 +02:00
|
|
|
src/gui/forms/dialogopencompany.h \
|
2026-05-24 23:21:33 +02:00
|
|
|
widget/companylistitemdelegate.h \
|
2026-06-01 10:02:36 +02:00
|
|
|
src/gui/forms/formelementlist.h \
|
|
|
|
|
src/gui/forms/formthirdlist.h \
|
2026-05-24 23:21:33 +02:00
|
|
|
widget/mlineeditbutton.h \
|
|
|
|
|
itemtextpopupdelegate.h \
|
|
|
|
|
widget/lineedittag.h \
|
|
|
|
|
widget/treemodelcomposeelement.h \
|
|
|
|
|
itemcomboboxdelegate.h \
|
2026-06-01 10:02:36 +02:00
|
|
|
src/gui/widgets/qlistmodel.h \
|
2026-05-24 23:21:33 +02:00
|
|
|
widget/msqlquerymodel.h \
|
2026-06-01 10:02:36 +02:00
|
|
|
src/gui/forms/forminvoiceinlist.h \
|
|
|
|
|
src/gui/forms/formbase.h \
|
|
|
|
|
treeitem.h
|
2026-05-24 23:21:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
RESOURCES = editabletreemodel.qrc
|
|
|
|
|
|
|
|
|
|
|
2026-06-01 10:02:36 +02:00
|
|
|
SOURCES = src/gui/mainwindow.cpp \
|
|
|
|
|
utils/dbutils.cpp \
|
|
|
|
|
src/gui/forms/formbaselist.cpp \
|
|
|
|
|
src/gui/forms/formbudgetlist.cpp \
|
|
|
|
|
src/models/treemodel.cpp \
|
|
|
|
|
main.cpp \
|
2026-05-24 23:21:33 +02:00
|
|
|
itemnumberdelegate.cpp \
|
|
|
|
|
qmtreeview.cpp \
|
|
|
|
|
itemtextdelegate.cpp \
|
|
|
|
|
header.cpp \
|
|
|
|
|
mapplication.cpp \
|
2026-06-01 10:02:36 +02:00
|
|
|
src/gui/forms/formbudget.cpp \
|
2026-05-24 23:21:33 +02:00
|
|
|
utils/fiebdc.cpp \
|
|
|
|
|
utils/filterlineedit.cpp \
|
|
|
|
|
utils/filtertableheader.cpp \
|
|
|
|
|
widget/widgetcomboboxpopuptable.cpp \
|
2026-06-01 10:02:36 +02:00
|
|
|
src/gui/forms/formthird.cpp \
|
2026-05-24 23:21:33 +02:00
|
|
|
widget/avatarwidget.cpp \
|
2026-06-01 10:02:36 +02:00
|
|
|
src/gui/forms/formproduct.cpp \
|
2026-05-24 23:21:33 +02:00
|
|
|
itemrichtextdelegate.cpp \
|
2026-06-01 10:02:36 +02:00
|
|
|
src/gui/forms/dialogcreateenterprise.cpp \
|
2026-05-24 23:21:33 +02:00
|
|
|
utils/frameless.cpp \
|
2026-06-01 10:02:36 +02:00
|
|
|
src/gui/forms/dialogopencompany.cpp \
|
2026-05-24 23:21:33 +02:00
|
|
|
widget/companylistitemdelegate.cpp \
|
2026-06-01 10:02:36 +02:00
|
|
|
src/gui/forms/formelementlist.cpp \
|
|
|
|
|
src/gui/forms/formthirdlist.cpp \
|
2026-05-24 23:21:33 +02:00
|
|
|
widget/mlineeditbutton.cpp \
|
|
|
|
|
itemtextpopupdelegate.cpp \
|
|
|
|
|
widget/lineedittag.cpp \
|
|
|
|
|
widget/treemodelcomposeelement.cpp \
|
|
|
|
|
itemcomboboxdelegate.cpp \
|
2026-06-01 10:02:36 +02:00
|
|
|
src/gui/widgets/qlistmodel.cpp \
|
2026-05-24 23:21:33 +02:00
|
|
|
widget/msqlquerymodel.cpp \
|
2026-06-01 10:02:36 +02:00
|
|
|
src/gui/forms/forminvoiceinlist.cpp \
|
|
|
|
|
src/gui/forms/formbase.cpp \
|
|
|
|
|
treeitem.cpp
|
2026-05-24 23:21:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
# install
|
|
|
|
|
target.path = $$[QT_INSTALL_EXAMPLES]/widgets/itemviews/editabletreemodel
|
|
|
|
|
INSTALLS += target
|
2026-06-01 10:02:36 +02:00
|
|
|
|
|
|
|
|
HEADERS += utils/dbutils.h
|
2026-06-04 18:03:35 +02:00
|
|
|
|
|
|
|
|
# DAO sources
|
|
|
|
|
SOURCES += \
|
|
|
|
|
src/dao/productdao.cpp \
|
|
|
|
|
src/dao/enterprisedao.cpp \
|
|
|
|
|
src/dao/thirddao.cpp \
|
|
|
|
|
src/dao/budgetdao.cpp \
|
|
|
|
|
src/dao/elementdao.cpp
|
|
|
|
|
|
|
|
|
|
HEADERS += \
|
|
|
|
|
src/dao/productdao.h \
|
|
|
|
|
src/dao/enterprisedao.h \
|
|
|
|
|
src/dao/thirddao.h \
|
|
|
|
|
src/dao/budgetdao.h \
|
|
|
|
|
src/dao/elementdao.h
|