summaryrefslogtreecommitdiff
path: root/noncore/net/opieirc/irctab.cpp
Unidiff
Diffstat (limited to 'noncore/net/opieirc/irctab.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opieirc/irctab.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/noncore/net/opieirc/irctab.cpp b/noncore/net/opieirc/irctab.cpp
index 3351c3b..8e1dc16 100644
--- a/noncore/net/opieirc/irctab.cpp
+++ b/noncore/net/opieirc/irctab.cpp
@@ -1,16 +1,17 @@
1#include <qpe/resource.h> 1#include <qpe/resource.h>
2#include <qpushbutton.h> 2#include <qpushbutton.h>
3#include <qwhatsthis.h> 3#include <qwhatsthis.h>
4#include "irctab.h" 4#include "irctab.h"
5#include "mainwindow.h"
5 6
6QString IRCTab::m_errorColor; 7QString IRCTab::m_errorColor;
7QString IRCTab::m_serverColor; 8QString IRCTab::m_serverColor;
8QString IRCTab::m_textColor; 9QString IRCTab::m_textColor;
9QString IRCTab::m_backgroundColor; 10QString IRCTab::m_backgroundColor;
10QString IRCTab::m_selfColor; 11QString IRCTab::m_selfColor;
11QString IRCTab::m_otherColor; 12QString IRCTab::m_otherColor;
12QString IRCTab::m_notificationColor; 13QString IRCTab::m_notificationColor;
13int IRCTab::m_maxLines; 14int IRCTab::m_maxLines;
14 15
15IRCTab::IRCTab(QWidget *parent, const char *name, WFlags f) : QWidget(parent, name, f) { 16IRCTab::IRCTab(QWidget *parent, const char *name, WFlags f) : QWidget(parent, name, f) {
16 m_layout = new QVBoxLayout(this); 17 m_layout = new QVBoxLayout(this);
@@ -27,12 +28,18 @@ IRCTab::IRCTab(QWidget *parent, const char *name, WFlags f) : QWidget(parent, na
27 descLayout->addWidget(close); 28 descLayout->addWidget(close);
28 descLayout->setStretchFactor(m_description, 1); 29 descLayout->setStretchFactor(m_description, 1);
29} 30}
30 31
31 32
32void IRCTab::setID(int id) { 33void IRCTab::setID(int id) {
33 m_id = id; 34 m_id = id;
34} 35}
35 36
36int IRCTab::id() { 37int IRCTab::id() {
37 return m_id; 38 return m_id;
38} 39}
40
41void IRCTab::showEvent( QShowEvent *ev ) {
42 topLevelWidget()->setCaption( MainWindow::appCaption() + " " + title() );
43 QWidget::showEvent( ev );
44 emit editFocus();
45}