Diffstat (limited to 'noncore/net/opieirc/ircmisc.cpp') (more/less context) (ignore 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 @@ -#include <opie/colordialog.h> #include <qlayout.h> #include <stdio.h> #include "ircmisc.h" -IRCColorLabel::IRCColorLabel(QColor color, QWidget *parent, const char *name, WFlags f) : QLabel(parent, name, f) { - m_color = color; - setAlignment(AlignVCenter | AlignCenter); - setFrameStyle(QFrame::StyledPanel); - setFrameShadow(QFrame::Sunken); - setBackgroundColor(m_color); -} - -void IRCColorLabel::mousePressEvent(QMouseEvent *) { - m_color = OColorDialog::getColor(m_color); - setBackgroundColor(m_color); -} - -QColor IRCColorLabel::color() { - return m_color; -} - -IRCFramedColorLabel::IRCFramedColorLabel(QColor color, QWidget *parent, const char *name, WFlags f) : QWidget(parent, name, f) { - QVBoxLayout *layout = new QVBoxLayout(this, 10, 0); - m_label = new IRCColorLabel(color, this); - layout->addWidget(m_label); -} - -QColor IRCFramedColorLabel::color() { - return m_label->color(); -} - - IRCTabBar::IRCTabBar(QWidget *parent, const char *name) : QTabBar(parent, name) { } int IRCTabBar::insertTab(QTab *tab, int index) { |