Hello!
If i create a project like this
TEMPLATE = app
CONFIG += qt
TARGET = aterm
SOURCES += main.cpp mainwindow.cpp tabwidget.cpp colordialog.cpp commandsdialog.cpp
HEADERS += mainwindow.h tabwidget.h config.h colordialog.h commandsdialog.h
FORMS += mw.ui colorformbase.ui commands.ui
include (qtermwidgetmod.pri)
TRANSLATIONS=term_ru.ts
TEMPLATE = app
CONFIG += qt
TARGET = aterm
SOURCES += main.cpp mainwindow.cpp tabwidget.cpp colordialog.cpp commandsdialog.cpp
HEADERS += mainwindow.h tabwidget.h config.h colordialog.h commandsdialog.h
FORMS += mw.ui colorformbase.ui commands.ui
include (qtermwidgetmod.pri)
TRANSLATIONS=term_ru.ts
To copy to clipboard, switch view to plain text mode
and include qtermwidgetmod.pri contents
DEPENDPATH += qtermwidgetmod
INCLUDEPATH += qtermwidgetmod
VPATH += qtermwidgetmod
SOURCES += TerminalCharacterDecoder.cpp KeyboardTranslator.cpp Screen.cpp History.cpp BlockArray.cpp (a lot of files skipped) konsole_wcwidth.cpp
HEADERS += TerminalCharacterDecoder.h Character.h CharacterColor.h (a lot of files skipped) ShellCommand.h qtermwidget.h
DEPENDPATH += qtermwidgetmod
INCLUDEPATH += qtermwidgetmod
VPATH += qtermwidgetmod
SOURCES += TerminalCharacterDecoder.cpp KeyboardTranslator.cpp Screen.cpp History.cpp BlockArray.cpp (a lot of files skipped) konsole_wcwidth.cpp
HEADERS += TerminalCharacterDecoder.h Character.h CharacterColor.h (a lot of files skipped) ShellCommand.h qtermwidget.h
To copy to clipboard, switch view to plain text mode
Here is the problem with lupdate for all files in subdirectory "qtermwidgetmod":
# lupdate term.pro
lupdate error: Cannot open C++ source file: (filename): no such file or directory
# lupdate term.pro
lupdate error: Cannot open C++ source file: (filename): no such file or directory
To copy to clipboard, switch view to plain text mode
The program itself compiles and works fine.
Is there any way to force lupdate find these files except explicit definition of subdir to every file in qtermwidgetmod.pri (like SOURCES += qtermwidgetmod/Screen.cpp ... ) ?
Thanks!
Bookmarks