[prev in list] [next in list] [prev in thread] [next in thread]
List: atlantik-devel
Subject: [atlantik-cvs] CVS: kdegames/atlantik/client atlantik.cpp, 1.164,
From: kde () office ! kde ! org
Date: 2004-05-29 12:05:29
Message-ID: 40B87C89.mail2AU11B2MF () office ! kde ! org
[Download RAW message or body]
Update of /home/kde/kdegames/atlantik/client
In directory office:/tmp/cvs-serv2962/client
Modified Files:
atlantik.cpp
Log Message:
backport 3.1 compat: KStdAction::clear is since 3.2
Index: atlantik.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/client/atlantik.cpp,v
retrieving revision 1.164
retrieving revision 1.165
diff -u -d -r1.164 -r1.165
--- atlantik.cpp 28 May 2004 20:30:00 -0000 1.164
+++ atlantik.cpp 29 May 2004 12:05:26 -0000 1.165
@@ -35,6 +35,14 @@
#include <kstdaction.h>
#include <ktoolbar.h>
+#include <kdeversion.h>
+#undef KDE_3_2_FEATURES
+#if defined(KDE_MAKE_VERSION)
+#if KDE_VERSION >= KDE_MAKE_VERSION(3,2,0)
+ #define KDE_3_2_FEATURES
+#endif
+#endif
+
#include <kdebug.h>
#include <atlantic_core.h>
@@ -57,7 +65,11 @@
LogTextEdit::LogTextEdit( QWidget *parent, const char *name ) : QTextEdit( parent, name )
{
+#ifdef KDE_3_2_FEATURES
m_clear = KStdAction::clear( this, SLOT( clear() ), 0 );
+#else
+ m_clear = new KAction( i18n("Clear"), "clear", NULL, this, SLOT( clear() ), 0, "clear" );
+#endif
m_selectAll = KStdAction::selectAll( this, SLOT( selectAll() ), 0 );
m_copy = KStdAction::copy( this, SLOT( copy() ), 0 );
}
_______________________________________________
atlantik-cvs mailing list
atlantik-cvs@kde.org
https://mail.kde.org/mailman/listinfo/atlantik-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic