diff options
| author | Jonathan Bauer | 2011-03-18 11:31:51 +0100 |
|---|---|---|
| committer | Jonathan Bauer | 2011-03-18 11:31:51 +0100 |
| commit | db94cf6c69e5c8c9f2b1b5dcf77879c425fbd1b4 (patch) | |
| tree | b84360e117480587b99d6af0c1d02a0d6eaafe09 /src/logViewer.cpp | |
| parent | (WIP) logViewer wont stay like this, just to show layout possibilities..(WIP)... (diff) | |
| download | fbgui-db94cf6c69e5c8c9f2b1b5dcf77879c425fbd1b4.tar.gz fbgui-db94cf6c69e5c8c9f2b1b5dcf77879c425fbd1b4.tar.xz fbgui-db94cf6c69e5c8c9f2b1b5dcf77879c425fbd1b4.zip | |
layout: logViewer as a bottom widget, resizeable, toggle with crtl + D, stil for demonstration purposes mostly...
Diffstat (limited to 'src/logViewer.cpp')
| -rw-r--r-- | src/logViewer.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/logViewer.cpp b/src/logViewer.cpp index 4f2b42d..ac93f39 100644 --- a/src/logViewer.cpp +++ b/src/logViewer.cpp @@ -3,15 +3,9 @@ logViewer::logViewer(QWidget *parent) : QTextEdit(parent) { setWindowFlags(Qt::FramelessWindowHint); - QPalette qp; - qp.setColor(QPalette::Base, Qt::black); - setPalette(qp); + QPalette pal; + pal.setColor(QPalette::Base, Qt::black); + setPalette(pal); setTextColor(Qt::green); - setPlainText("Debug console loaded."); - //resize(QSize(640, 480)); - //setVisible(false); -} - -void logViewer::write(QString text){ - if (debug) this->append(text); + setPlainText("Debug console initialized."); } |
