author | mickeyl <mickeyl> | 2004-04-04 13:54:40 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-04-04 13:54:40 (UTC) |
commit | 16cf79e90b5217f8d4bfce2a0fa817ae4b73db36 (patch) (unidiff) | |
tree | 0701eae15aa606a0211a2fccfde0eafdac69357c /noncore/net/opieirc | |
parent | 8d2d2664e5f544b8292806e617deb7a0e4170dc0 (diff) | |
download | opie-16cf79e90b5217f8d4bfce2a0fa817ae4b73db36.zip opie-16cf79e90b5217f8d4bfce2a0fa817ae4b73db36.tar.gz opie-16cf79e90b5217f8d4bfce2a0fa817ae4b73db36.tar.bz2 |
convert to Opie Debugging Framework
-rw-r--r-- | noncore/net/opieirc/config.in | 2 | ||||
-rw-r--r-- | noncore/net/opieirc/ircmisc.cpp | 9 | ||||
-rw-r--r-- | noncore/net/opieirc/opieirc.pro | 3 |
3 files changed, 8 insertions, 6 deletions
diff --git a/noncore/net/opieirc/config.in b/noncore/net/opieirc/config.in index a61cf70..2c56523 100644 --- a/noncore/net/opieirc/config.in +++ b/noncore/net/opieirc/config.in | |||
@@ -1,4 +1,4 @@ | |||
1 | config OPIEIRC | 1 | config OPIEIRC |
2 | boolean "opie-irc (chat via your favorite IRC server)" | 2 | boolean "opie-irc (chat via your favorite IRC server)" |
3 | default "y" | 3 | default "y" |
4 | depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2UI && LIBQTAUX | 4 | depends ( LIBQPE || LIBQPE-X11 ) && LIBOPIE2CORE && LIBOPIE2UI && LIBQTAUX |
diff --git a/noncore/net/opieirc/ircmisc.cpp b/noncore/net/opieirc/ircmisc.cpp index 22387b3..6d93a34 100644 --- a/noncore/net/opieirc/ircmisc.cpp +++ b/noncore/net/opieirc/ircmisc.cpp | |||
@@ -1,9 +1,12 @@ | |||
1 | #include <stdio.h> | ||
2 | #include "ircmisc.h" | 1 | #include "ircmisc.h" |
3 | 2 | ||
3 | /* OPIE */ | ||
4 | #include <opie2/odebug.h> | ||
5 | using namespace Opie::Core; | ||
6 | |||
4 | IRCTabBar::IRCTabBar(QWidget *parent, const char *name) : QTabBar(parent, name) { | 7 | IRCTabBar::IRCTabBar(QWidget *parent, const char *name) : QTabBar(parent, name) { |
5 | } | 8 | } |
6 | 9 | ||
7 | int IRCTabBar::insertTab(QTab *tab, int index) { | 10 | int IRCTabBar::insertTab(QTab *tab, int index) { |
8 | /* FIXME: find some nicer way to do this */ | 11 | /* FIXME: find some nicer way to do this */ |
9 | QExtTab *ext = new QExtTab(); | 12 | QExtTab *ext = new QExtTab(); |
@@ -61,23 +64,23 @@ void IRCHistoryLineEdit::keyPressEvent(QKeyEvent *event) { | |||
61 | setText(""); | 64 | setText(""); |
62 | } | 65 | } |
63 | } else if (key == Key_Return) { | 66 | } else if (key == Key_Return) { |
64 | m_history.prepend(text()); | 67 | m_history.prepend(text()); |
65 | m_index = -1; | 68 | m_index = -1; |
66 | } else if (key == Key_Tab) { | 69 | } else if (key == Key_Tab) { |
67 | printf("got tab\n"); | 70 | odebug << "got tab" << oendl; |
68 | return; | 71 | return; |
69 | } | 72 | } |
70 | QLineEdit::keyPressEvent(event); | 73 | QLineEdit::keyPressEvent(event); |
71 | } | 74 | } |
72 | 75 | ||
73 | bool IRCHistoryLineEdit::eventFilter(QObject *object, QEvent *event) { | 76 | bool IRCHistoryLineEdit::eventFilter(QObject *object, QEvent *event) { |
74 | if (event->type() == QEvent::KeyPress) { | 77 | if (event->type() == QEvent::KeyPress) { |
75 | QKeyEvent *k = (QKeyEvent *) event; | 78 | QKeyEvent *k = (QKeyEvent *) event; |
76 | /* Catch tab characters */ | 79 | /* Catch tab characters */ |
77 | if (k->key() == Key_Tab) { | 80 | if (k->key() == Key_Tab) { |
78 | qDebug("tab!"); | 81 | odebug << "tab!" << oendl; |
79 | return TRUE; | 82 | return TRUE; |
80 | } | 83 | } |
81 | } | 84 | } |
82 | return QLineEdit::eventFilter(object, event); | 85 | return QLineEdit::eventFilter(object, event); |
83 | } | 86 | } |
diff --git a/noncore/net/opieirc/opieirc.pro b/noncore/net/opieirc/opieirc.pro index 4f9092f..2455ec4 100644 --- a/noncore/net/opieirc/opieirc.pro +++ b/noncore/net/opieirc/opieirc.pro | |||
@@ -15,11 +15,10 @@ SOURCES = ircchannel.cpp ircconnection.cpp \ | |||
15 | irctab.cpp ircservertab.cpp \ | 15 | irctab.cpp ircservertab.cpp \ |
16 | ircchanneltab.cpp ircchannellist.cpp \ | 16 | ircchanneltab.cpp ircchannellist.cpp \ |
17 | ircserverlist.cpp ircservereditor.cpp \ | 17 | ircserverlist.cpp ircservereditor.cpp \ |
18 | ircquerytab.cpp ircsettings.cpp ircmisc.cpp | 18 | ircquerytab.cpp ircsettings.cpp ircmisc.cpp |
19 | INCLUDEPATH += $(OPIEDIR)/include | 19 | INCLUDEPATH += $(OPIEDIR)/include |
20 | DEPENDPATH+= $(OPIEDIR)/include | 20 | DEPENDPATH+= $(OPIEDIR)/include |
21 | LIBS += -lqpe -lopieui2 -lqtaux2 | 21 | LIBS += -lqpe -lopiecore2 -lopieui2 -lqtaux2 |
22 | |||
23 | TARGET= opieirc | 22 | TARGET= opieirc |
24 | 23 | ||
25 | include ( $(OPIEDIR)/include.pro ) | 24 | include ( $(OPIEDIR)/include.pro ) |