Skip to content

Commit

Permalink
Add debugf to gui.cpp so it will compile.
Browse files Browse the repository at this point in the history
  • Loading branch information
phire committed Oct 17, 2011
1 parent 837418c commit 219591e
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion gui.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
#include <QtGui>
#include <cstdio>
#include <cstdarg>

QTextEdit *textEdit;

extern "C" void debugf(char *format, ...) {
va_list args;
va_start(args, format);
vprintf(format, args);
va_end(args);
}

int main(int argv, char **args) {
QApplication app(argv, args);

QTextEdit *textEdit = new QTextEdit;
textEdit = new QTextEdit;
textEdit->setReadOnly(TRUE);
QPushButton *quitButton = new QPushButton("Quit");

QObject::connect(quitButton, SIGNAL(clicked()), qApp, SLOT(quit()));
Expand Down

0 comments on commit 219591e

Please sign in to comment.