diff options
author | deva <deva> | 2005-06-14 12:29:40 +0000 |
---|---|---|
committer | deva <deva> | 2005-06-14 12:29:40 +0000 |
commit | 430524810e67d3c223a2ab819f45b882b419c45d (patch) | |
tree | 0abb4b2dd3dabc414c755c30e52d0b5022ee8670 /src/info_gui.cc | |
parent | 0836a6e06f86e366017da3b2b2c132b3a4f2c877 (diff) |
Incorporated the use of the Info object everywhere... also using the log functionality.
Diffstat (limited to 'src/info_gui.cc')
-rw-r--r-- | src/info_gui.cc | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/info_gui.cc b/src/info_gui.cc index 2559402..0d7d701 100644 --- a/src/info_gui.cc +++ b/src/info_gui.cc @@ -38,8 +38,6 @@ #include "info_gui.h" -#include "miav_config.h" - #include <stdio.h> #include <stdarg.h> @@ -59,9 +57,10 @@ bool InfoEventHandler::eventFilter( QObject *o, QEvent *e ) } } -InfoGui::InfoGui(QApplication *a, QWidget *p): Info() +InfoGui::InfoGui(QApplication *a, QWidget *p, MiavConfig *c): Info() { - log_filename = *config->readString("client_log_file"); + this->config = c; + log_filename = *(this->config->readString("client_log_file")); qapp = a; parent = p; @@ -118,6 +117,8 @@ void InfoGui::error(char *fmt, ...) va_end(argp); showmsg(buf, TXT_ERROR_TITLE, ICON_ERROR); + + log("Error: %s", buf); } void InfoGui::warn(char *fmt, ...) @@ -130,6 +131,8 @@ void InfoGui::warn(char *fmt, ...) va_end(argp); showmsg(buf, TXT_WARNING_TITLE, ICON_WARNING); + + log("Warning: %s", buf); } void InfoGui::info(char *fmt, ...) @@ -142,6 +145,8 @@ void InfoGui::info(char *fmt, ...) va_end(argp); showmsg(buf, TXT_INFO_TITLE, ICON_INFO); + + log("Info: %s", buf); } |