rename log file name without dots in time description (fixing #165)
This commit is contained in:
+1
-1
@@ -75,7 +75,7 @@ Log::init()
|
|||||||
char curTime[9];
|
char curTime[9];
|
||||||
time_t now = time(NULL);
|
time_t now = time(NULL);
|
||||||
tm *z = localtime(&now);
|
tm *z = localtime(&now);
|
||||||
strftime(curDateTime,20,"%Y-%m-%d_%H.%M.%S",z);
|
strftime(curDateTime,20,"%Y-%m-%d_%H%M%S",z);
|
||||||
strftime(curDate,11,"%Y-%m-%d",z);
|
strftime(curDate,11,"%Y-%m-%d",z);
|
||||||
strftime(curTime,9,"%H:%M:%S",z);
|
strftime(curTime,9,"%H:%M:%S",z);
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -110,8 +110,8 @@ enum PlayerActionLog {
|
|||||||
LOG_ACTION_WIN_SIDE_POT,// wins (side pot)
|
LOG_ACTION_WIN_SIDE_POT,// wins (side pot)
|
||||||
LOG_ACTION_SIT_OUT, // sits out
|
LOG_ACTION_SIT_OUT, // sits out
|
||||||
LOG_ACTION_WIN_GAME, // wins game
|
LOG_ACTION_WIN_GAME, // wins game
|
||||||
LOG_ACTION_LEFT, // left the game
|
LOG_ACTION_LEFT, // has left the game
|
||||||
LOG_ACTION_KICKED, // was kicked from
|
LOG_ACTION_KICKED, // was kicked from the game
|
||||||
LOG_ACTION_ADMIN, // is game admin now
|
LOG_ACTION_ADMIN, // is game admin now
|
||||||
LOG_ACTION_JOIN // has joined the game
|
LOG_ACTION_JOIN // has joined the game
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -133,6 +133,21 @@ int main( int argc, char **argv )
|
|||||||
p.setColor(QPalette::Link, QColor::fromRgb(192,192,255));
|
p.setColor(QPalette::Link, QColor::fromRgb(192,192,255));
|
||||||
p.setColor(QPalette::LinkVisited, QColor::fromRgb(192,192,255));
|
p.setColor(QPalette::LinkVisited, QColor::fromRgb(192,192,255));
|
||||||
a.setPalette(p);
|
a.setPalette(p);
|
||||||
|
#elif MAEMO
|
||||||
|
QString font1String("QApplication, QWidget, QDialog { font-family: \"Nimbus Sans L\"; font-size: 22px; }");
|
||||||
|
QPalette p = a.palette();
|
||||||
|
p.setColor(QPalette::Button, QColor::fromRgb(80,80,80));
|
||||||
|
p.setColor(QPalette::Base, QColor::fromRgb(80,80,80));
|
||||||
|
p.setColor(QPalette::Window, QColor::fromRgb(50,50,50));
|
||||||
|
p.setColor(QPalette::ButtonText, QColor::fromRgb(255,255,255));
|
||||||
|
p.setColor(QPalette::Disabled, QPalette::ButtonText, QColor::fromRgb(100,100,100));
|
||||||
|
p.setColor(QPalette::WindowText, QColor::fromRgb(255,255,255));
|
||||||
|
p.setColor(QPalette::Disabled, QPalette::WindowText, QColor::fromRgb(100,100,100));
|
||||||
|
p.setColor(QPalette::Text, QColor::fromRgb(255,255,255));
|
||||||
|
p.setColor(QPalette::Disabled, QPalette::Text, QColor::fromRgb(100,100,100));
|
||||||
|
p.setColor(QPalette::Link, QColor::fromRgb(192,192,255));
|
||||||
|
p.setColor(QPalette::LinkVisited, QColor::fromRgb(192,192,255));
|
||||||
|
a.setPalette(p);
|
||||||
#else
|
#else
|
||||||
QString font1String("QApplication, QWidget, QDialog { font-family: \"Nimbus Sans L\"; font-size: 12px; }");
|
QString font1String("QApplication, QWidget, QDialog { font-family: \"Nimbus Sans L\"; font-size: 12px; }");
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user