Qt4: Handle saving/loading message history

This commit is contained in:
Pasi Kallinen
2017-10-11 00:32:39 +03:00
parent 2fcf1ad139
commit c6f0058e3d
4 changed files with 47 additions and 12 deletions
+4 -1
View File
@@ -80,7 +80,6 @@ public:
static char *qt_getmsghistory(BOOLEAN_P init);
static void qt_putmsghistory(const char *msg, BOOLEAN_P is_restoring);
static void qt_putmsghistory(const std::string& msg, BOOLEAN_P is_restoring);
static void qt_outrip(winid wid, int how, time_t when);
static int qt_kbhit();
@@ -89,6 +88,10 @@ public:
private:
virtual bool notify(QObject *receiver, QEvent *event);
static QStringList *msgs_strings;
static boolean msgs_saved;
static boolean msgs_initd;
};
} // namespace nethack_qt4