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) (side-by-side diff)
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,36 +1,7 @@
-#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) {
}