Diffstat (limited to 'noncore/net/opieirc/ircmisc.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/net/opieirc/ircmisc.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/noncore/net/opieirc/ircmisc.cpp b/noncore/net/opieirc/ircmisc.cpp index f94cf1b..a15a790 100644 --- a/noncore/net/opieirc/ircmisc.cpp +++ b/noncore/net/opieirc/ircmisc.cpp | |||
@@ -1,37 +1,8 @@ | |||
1 | #include <opie/colordialog.h> | ||
2 | #include <qlayout.h> | 1 | #include <qlayout.h> |
3 | #include <stdio.h> | 2 | #include <stdio.h> |
4 | #include "ircmisc.h" | 3 | #include "ircmisc.h" |
5 | 4 | ||
6 | IRCColorLabel::IRCColorLabel(QColor color, QWidget *parent, const char *name, WFlags f) : QLabel(parent, name, f) { | ||
7 | m_color = color; | ||
8 | setAlignment(AlignVCenter | AlignCenter); | ||
9 | setFrameStyle(QFrame::StyledPanel); | ||
10 | setFrameShadow(QFrame::Sunken); | ||
11 | setBackgroundColor(m_color); | ||
12 | } | ||
13 | |||
14 | void IRCColorLabel::mousePressEvent(QMouseEvent *) { | ||
15 | m_color = OColorDialog::getColor(m_color); | ||
16 | setBackgroundColor(m_color); | ||
17 | } | ||
18 | |||
19 | QColor IRCColorLabel::color() { | ||
20 | return m_color; | ||
21 | } | ||
22 | |||
23 | IRCFramedColorLabel::IRCFramedColorLabel(QColor color, QWidget *parent, const char *name, WFlags f) : QWidget(parent, name, f) { | ||
24 | QVBoxLayout *layout = new QVBoxLayout(this, 10, 0); | ||
25 | m_label = new IRCColorLabel(color, this); | ||
26 | layout->addWidget(m_label); | ||
27 | } | ||
28 | |||
29 | QColor IRCFramedColorLabel::color() { | ||
30 | return m_label->color(); | ||
31 | } | ||
32 | |||
33 | |||
34 | IRCTabBar::IRCTabBar(QWidget *parent, const char *name) : QTabBar(parent, name) { | 5 | IRCTabBar::IRCTabBar(QWidget *parent, const char *name) : QTabBar(parent, name) { |
35 | } | 6 | } |
36 | 7 | ||
37 | int IRCTabBar::insertTab(QTab *tab, int index) { | 8 | int IRCTabBar::insertTab(QTab *tab, int index) { |