Changeset 806
- Timestamp:
- 08/11/08 10:03:58 (3 months ago)
- Location:
- mcbuilder/trunk
- Files:
-
- 3 modified
-
include/BuildLog.h (modified) (1 diff)
-
src/BuildLog.cpp (modified) (1 diff)
-
src/Builder.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mcbuilder/trunk/include/BuildLog.h
r683 r806 30 30 void append(QString msg); 31 31 void clear( ); 32 33 private: 34 QTextCharFormat fmt; 32 35 }; 33 36 -
mcbuilder/trunk/src/BuildLog.cpp
r684 r806 38 38 void BuildLog::append(QString msg) 39 39 { 40 if(msg.startsWith("*****************")) 41 fmt.setForeground(Qt::black); 42 else 43 fmt.setForeground(QColor(75, 75, 75)); // gray 44 45 if(!msg.endsWith("\n")) // for some reason, block coloring only seems to happen with new lines...shrug 46 msg.append("\n"); 47 48 logConsole->textCursor().setBlockCharFormat(fmt); 40 49 logConsole->appendPlainText(msg); 50 41 51 // scroll to the bottom 42 52 logConsole->moveCursor(QTextCursor::End); -
mcbuilder/trunk/src/Builder.cpp
r800 r806 57 57 } 58 58 currentProjectPath = projectName; 59 setWorkingDirectory(QDir(currentProjectPath).filePath("build")); 59 QDir dir(currentProjectPath); 60 setWorkingDirectory(dir.filePath("build")); 60 61 loadDependencies(LIBRARIES_DIR, currentProjectPath); // this loads up the list of libraries this project depends on 61 62 createMakefile(currentProjectPath); // create a Makefile for this project, given the dependencies … … 69 70 start(makePath + "make"); 70 71 QString buildmsg("***************************************************************\n"); 71 buildmsg += " mcbuilder - building " + projectName+ "\n";72 buildmsg += " mcbuilder - building " + dir.dirName() + "\n"; 72 73 buildmsg += QDateTime::currentDateTime().toString(" MMM d, yyyy h:m ap") + "\n"; 73 74 buildmsg += "***************************************************************";
