summaryrefslogtreecommitdiff
path: root/noncore/net/opieirc/ircmisc.cpp
authordrw <drw>2002-12-30 00:52:51 (UTC)
committer drw <drw>2002-12-30 00:52:51 (UTC)
commitc7bbdeed0daeda9af5115ffa0f1fb1026a338e2d (patch) (unidiff)
tree641b0a344cc9e274c39df282c4478dd74644d813 /noncore/net/opieirc/ircmisc.cpp
parent9ec4adfb12bd5c92427a79c6b63a064a0033a67a (diff)
downloadopie-c7bbdeed0daeda9af5115ffa0f1fb1026a338e2d.zip
opie-c7bbdeed0daeda9af5115ffa0f1fb1026a338e2d.tar.gz
opie-c7bbdeed0daeda9af5115ffa0f1fb1026a338e2d.tar.bz2
Use OTabWidget & OColorButtons in config dialog for consistency w/other apps (reduces executable size by ~4k as well).
Diffstat (limited to 'noncore/net/opieirc/ircmisc.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opieirc/ircmisc.cpp29
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,2 +1 @@
1#include <opie/colordialog.h>
2#include <qlayout.h> #include <qlayout.h>
@@ -5,30 +4,2 @@
5 4
6IRCColorLabel::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
14void IRCColorLabel::mousePressEvent(QMouseEvent *) {
15 m_color = OColorDialog::getColor(m_color);
16 setBackgroundColor(m_color);
17}
18
19QColor IRCColorLabel::color() {
20 return m_color;
21}
22
23IRCFramedColorLabel::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
29QColor IRCFramedColorLabel::color() {
30 return m_label->color();
31}
32
33
34IRCTabBar::IRCTabBar(QWidget *parent, const char *name) : QTabBar(parent, name) { 5IRCTabBar::IRCTabBar(QWidget *parent, const char *name) : QTabBar(parent, name) {