|
|
@ -1183,7 +1183,7 @@ MakefileGenerator::init()
|
|
|
|
Option::fixPathToTargetOS(imgfile);
|
|
|
|
Option::fixPathToTargetOS(imgfile);
|
|
|
|
if(!project->isEmpty("UI_DIR") || !project->isEmpty("UI_SOURCES_DIR")) {
|
|
|
|
if(!project->isEmpty("UI_DIR") || !project->isEmpty("UI_SOURCES_DIR")) {
|
|
|
|
if(imgfile.find(Option::dir_sep) != -1)
|
|
|
|
if(imgfile.find(Option::dir_sep) != -1)
|
|
|
|
imgfile = imgfile.right(imgfile.findRev(Option::dir_sep) + 1);
|
|
|
|
imgfile = imgfile.mid(imgfile.findRev(Option::dir_sep) + 1);
|
|
|
|
imgfile.prepend( (project->isEmpty("UI_DIR") ? project->first("UI_SOURCES_DIR") :
|
|
|
|
imgfile.prepend( (project->isEmpty("UI_DIR") ? project->first("UI_SOURCES_DIR") :
|
|
|
|
project->first("UI_DIR")) );
|
|
|
|
project->first("UI_DIR")) );
|
|
|
|
v["QMAKE_IMAGE_COLLECTION"] = TQStringList(imgfile);
|
|
|
|
v["QMAKE_IMAGE_COLLECTION"] = TQStringList(imgfile);
|
|
|
@ -1433,7 +1433,7 @@ MakefileGenerator::write()
|
|
|
|
TQString prl = var("TARGET");
|
|
|
|
TQString prl = var("TARGET");
|
|
|
|
int slsh = prl.findRev(Option::dir_sep);
|
|
|
|
int slsh = prl.findRev(Option::dir_sep);
|
|
|
|
if(slsh != -1)
|
|
|
|
if(slsh != -1)
|
|
|
|
prl = prl.right(prl.length() - slsh);
|
|
|
|
prl = prl.right(prl.length() - slsh - 1);
|
|
|
|
int dot = prl.find('.');
|
|
|
|
int dot = prl.find('.');
|
|
|
|
if(dot != -1)
|
|
|
|
if(dot != -1)
|
|
|
|
prl = prl.left(dot);
|
|
|
|
prl = prl.left(dot);
|
|
|
|