blob: 71f77b8f33e9569e4a4628b736742cbe996f0532 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/*
* Copyright (c) 2011 Vlad Voicu
* Licensed under the Simplified BSD license.
* See Documentation/Licenses/BSD-simplified.txt for more information.
*/
#include <QWidget>
#include <QBoxLayout>
#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);
}
}
|