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.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/noncore/net/opieirc/irctab.cpp b/noncore/net/opieirc/irctab.cpp
index 6b578d1..a4dd7e2 100644
--- a/noncore/net/opieirc/irctab.cpp
+++ b/noncore/net/opieirc/irctab.cpp
@@ -17,12 +17,20 @@ IRCTab::IRCTab(QWidget *parent, const char *name, WFlags f) : QWidget(parent, na
17 QHBoxLayout *descLayout = new QHBoxLayout(m_layout); 17 QHBoxLayout *descLayout = new QHBoxLayout(m_layout);
18 descLayout->setMargin(5); 18 descLayout->setMargin(5);
19 m_description = new QLabel(tr("Missing description"), this); 19 m_description = new QLabel(tr("Missing description"), this);
20 descLayout->addWidget(m_description); 20 descLayout->addWidget(m_description);
21 descLayout->setStretchFactor(m_description, 5); 21 descLayout->setStretchFactor(m_description, 5);
22 QPushButton *close = new QPushButton(this); 22 QPushButton *close = new QPushButton(this);
23 close->setPixmap(Resource::loadPixmap("close")); 23 close->setPixmap(Resource::loadPixmap("close"));
24 connect(close, SIGNAL(clicked()), this, SLOT(remove())); 24 connect(close, SIGNAL(clicked()), this, SLOT(remove()));
25 descLayout->addWidget(close); 25 descLayout->addWidget(close);
26 descLayout->setStretchFactor(m_description, 1); 26 descLayout->setStretchFactor(m_description, 1);
27} 27}
28 28
29
30void IRCTab::setID(int id) {
31 m_id = id;
32}
33
34int IRCTab::id() {
35 return m_id;
36}