Huggle  build:^490^dce1e5c
 All Classes Namespaces Functions Variables Enumerations Enumerator Pages
hugglelog.cpp
1 //This program is free software: you can redistribute it and/or modify
2 //it under the terms of the GNU General Public License as published by
3 //the Free Software Foundation, either version 3 of the License, or
4 //(at your option) any later version.
5 
6 //This program is distributed in the hope that it will be useful,
7 //but WITHOUT ANY WARRANTY; without even the implied warranty of
8 //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9 //GNU General Public License for more details.
10 
11 #include "hugglelog.hpp"
12 #include "ui_hugglelog.h"
13 
14 using namespace Huggle;
15 
16 HuggleLog::HuggleLog(QWidget *parent) : QDockWidget(parent), ui(new Ui::HuggleLog)
17 {
18  ui->setupUi(this);
19  ui->textEdit->resize(ui->textEdit->width(), 60);
20 }
21 
22 void HuggleLog::InsertText(QString text)
23 {
24  QString t = ui->textEdit->toPlainText();
25  t.prepend(text + "\n");
26 
27  ui->textEdit->setPlainText(t);
28 }
29 
30 HuggleLog::~HuggleLog()
31 {
32  delete ui;
33 }
This window contains all the messages that are stored in ring log.
Definition: hugglelog.hpp:28