[qcross] save paused state to savegames
This commit is contained in:
parent
fe3b10e35a
commit
608a114a05
@ -153,6 +153,10 @@ namespace qcross {
|
||||
updateTimeDisplay();
|
||||
emit timeChanged(m_Time);
|
||||
|
||||
// paused
|
||||
stream >> m_Paused; qDebug("m_Paused = %i", int(m_Paused));
|
||||
setDisabled(m_Paused);
|
||||
|
||||
// messages
|
||||
int messageCount;
|
||||
stream >> messageCount; qDebug("messageCount = %i", messageCount);
|
||||
@ -193,6 +197,9 @@ namespace qcross {
|
||||
// time(out)
|
||||
stream << m_Time;
|
||||
|
||||
// paused state
|
||||
stream << m_Paused;
|
||||
|
||||
// messages
|
||||
// actually we should dump the message queue
|
||||
// for now only dump last displayed
|
||||
@ -469,14 +476,12 @@ namespace qcross {
|
||||
}
|
||||
|
||||
void CCrossFieldWidget::paintEvent(QPaintEvent *) {
|
||||
QPainter painter(this);
|
||||
|
||||
if (!m_Picture) {
|
||||
/* painter.drawText(originX, originY, m_BoxSize, m_BoxSize,
|
||||
Qt::AlignVCenter | Qt::AlignCenter, QString::number(m_Picture->rowNumbers(i)[m_Picture->rowNumbers(i).size() - j]));*/
|
||||
return;
|
||||
}
|
||||
|
||||
QPainter painter(this);
|
||||
|
||||
int originX = m_OffsetX + m_HeaderWidth;
|
||||
int originY = m_OffsetY + m_HeaderHeight;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user