/* * Copyright (c) 2011 Vlad Voicu * Licensed under the Simplified BSD license. * See Documentation/Licenses/BSD-simplified.txt for more information. */ #include #include #include "QtViewHistoryWindow.h" #include "QtChatView.h" #include "QtChatTheme.h" namespace Swift { QtViewHistoryWindow::QtViewHistoryWindow() { ui.setupUi(this); QtChatTheme *theme = new QtChatTheme(""); // Where should I get the theme path from? messageLog_ = new QtChatView(theme, this); ui.chatView_->addWidget(messageLog_); show(); } void QtViewHistoryWindow::show() { QWidget::show(); QWidget::activateWindow(); } void QtViewHistoryWindow::setEnabled(bool enabled) { QWidget::setEnabled(enabled); } }