Changeset 803 for Vago/trunk
- Timestamp:
- Apr 11, 2013, 12:01:56 AM (12 years ago)
- Location:
- Vago/trunk/Vago
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Vago/trunk/Vago/logger.cpp
r771 r803 1 1 #include "logger.h" 2 2 3 Logger::Logger( )3 Logger::Logger(QString appDir) 4 4 { 5 myLogFile = new QFile( GlobalVars::AppLogName);5 myLogFile = new QFile(appDir+"/"+GlobalVars::AppLogName); 6 6 7 7 if (!myLogFile->open(QIODevice::WriteOnly | QIODevice::Text)){ //open to write -
Vago/trunk/Vago/logger.h
r771 r803 10 10 { 11 11 public: 12 Logger( );12 Logger(QString appDir); 13 13 ~Logger(); 14 14 void writeString(QString strToWrite); -
Vago/trunk/Vago/mainwindow.cpp
r802 r803 12 12 this->AppDir=getOSIndependentAppPath(); 13 13 14 this->myLogger = new Logger( ); //start logger14 this->myLogger = new Logger(this->AppDir); //start logger 15 15 16 16 this->myLogger->writeString("Detected AppDir: "+this->AppDir);
Note:
See TracChangeset
for help on using the changeset viewer.