#include "info.h" #include #include #include "config.h" /** * Constructor */ Info::Info (Config* conf, QWidget * parent, const char * name) :QTextEdit( parent,name){ config = conf; setFixedHeight(config->getOption("infosize").toInt()); setReadOnly(true); zoomTo(20); setText("
Welcome to IRFC2
"); setBackgroundMode(FixedColor); setPaletteBackgroundColor("#"+config->getOption("infocolor")); setHScrollBarMode(QScrollView::AlwaysOff); setVScrollBarMode(QScrollView::AlwaysOff); setFocusPolicy(QWidget::NoFocus); }; /** * SLOT - clears the info panel and sets the new content */ void Info::setInfo(QString info){ clear(); setText(info); }