From kde-commits Fri Sep 12 07:48:06 2003 From: Olivier Goffart Date: Fri, 12 Sep 2003 07:48:06 +0000 To: kde-commits Subject: kdenetwork/kopete/kopete/chatwindow X-MARC-Message: https://marc.info/?l=kde-commits&m=106335295800427 CVS commit by ogoffart: Compilation fix for KDE 3.1 Jason: KTabWidget is in compat for the KSettings. And, i don't know why, but your #if did not work, i got compilations error at link. CCMAIL: jason@keirstead.org M +2 -3 Makefile.am 1.9 M +1 -5 chatview.cpp 1.71 M +478 -483 chatview.h 1.28 M +8 -12 kopetechatwindow.cpp 1.39 M +0 -5 kopetechatwindow.h 1.17 R kopetetabwidget.cpp 1.2 R kopetetabwidget.h 1.3 --- kdenetwork/kopete/kopete/chatwindow/Makefile.am #1.8:1.9 @@ -2,14 +2,13 @@ METASOURCES = AUTO -AM_CPPFLAGS = $(KOPETE_INCLUDES) -I$(top_srcdir)/kopete/libkopete/private $(all_includes) +AM_CPPFLAGS = $(KOPETE_INCLUDES) $(KOPETE_COMPAT_INCLUDES) -I$(top_srcdir)/kopete/libkopete/private $(all_includes) kopete_chatwindow_la_SOURCES = kopeteviewmanager.cpp kopeteemailwindow.cpp \ kopetechatwindow.cpp chatview.cpp \ - kopetetabwidget.cpp \ emoticonselector.cpp \ kopeteemoticonaction.cpp kopete_chatwindow_la_LDFLAGS = -no-undefined -module $(KDE_PLUGIN) $(all_libraries) -kopete_chatwindow_la_LIBADD = ../../libkopete/libkopete.la $(LIB_KDEUI) +kopete_chatwindow_la_LIBADD = ../../libkopete/libkopete.la $(LIB_KOPETECOMPAT) $(LIB_KDEUI) libkrichtexteditpart_la_SOURCES = krichtexteditpart.cpp --- kdenetwork/kopete/kopete/chatwindow/chatview.cpp #1.70:1.71 @@ -56,9 +56,5 @@ #include "kopeteaccount.h" -#if KDE_IS_VERSION(3,1,90) - #include -#else - #include "kopetetabwidget.cpp" -#endif +#include ChatView::ChatView( KopeteMessageManager *mgr, const char *name ) --- kdenetwork/kopete/kopete/chatwindow/chatview.h #1.27:1.28 @@ -39,9 +39,4 @@ class KHTMLView; class KRootPixmap; -#include -#if KDE_IS_VERSION(3,1,90) -#else - #define KTabWidget KopeteTabWidget -#endif class KopeteChatWindow; --- kdenetwork/kopete/kopete/chatwindow/kopetechatwindow.cpp #1.38:1.39 @@ -37,4 +37,5 @@ #include #include +#include #include "kopeteprotocol.h" @@ -53,9 +54,6 @@ #include "kopeteemoticonaction.h" -#if KDE_IS_VERSION(3,1,90) - #include -#else - #include "kopetetabwidget.cpp" -#endif + + #if QT_VERSION >= 0x030200 @@ -576,9 +574,7 @@ void KopeteChatWindow::createTabBar() m_tabBar = new KTabWidget( mainArea ); m_tabBar->setSizePolicy( QSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding ) ); - #if KDE_IS_VERSION(3,1,90) m_tabBar->setHoverCloseButton(true); m_tabBar->setTabReorderingEnabled(true); connect( m_tabBar, SIGNAL( closeRequest( QWidget* )), this, SLOT( slotCloseChat( QWidget* ) ) ); - #endif #if QT_VERSION >= 0x030200 --- kdenetwork/kopete/kopete/chatwindow/kopetechatwindow.h #1.16:1.17 @@ -19,9 +19,4 @@ #define KOPETECHATWINDOW_H -#if KDE_IS_VERSION(3,1,90) -#else - #define KTabWidget KopeteTabWidget -#endif - #include #include