Don't use obsolete header kapp.h and remove some old conditional code

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 48c5483324)
r14.1.x
Michele Calgaro 3 weeks ago
parent bc141f6414
commit 295752d2ee
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -23,11 +23,7 @@
#include <kdebug.h>
#include <tdeglobalsettings.h>
#include <tdeversion.h>
#if TDE_VERSION_MAJOR >= 3
#include <tdeapplication.h>
#else
#include <kapp.h>
#endif
#include <tdeapplication.h>
BoldMenuItem::BoldMenuItem(const TQString &text, const TQColor &active_text_color,

@ -21,13 +21,8 @@
#include <tdeversion.h>
#include <tdelocale.h>
#include <tdeglobal.h>
#if TDE_VERSION_MAJOR >= 3
#include <kstandarddirs.h>
#include <tdeapplication.h>
#else
#include <kstddirs.h>
#include <kapp.h>
#endif
#include <kstandarddirs.h>
#include <tdeapplication.h>
#include <tdeglobalsettings.h>
#include <kdebug.h>
#include <kglobalaccel.h>

@ -35,11 +35,7 @@
#include <tdelistbox.h>
#include <tdelocale.h>
#include <kdebug.h>
#if TDE_VERSION_MAJOR >= 3
#include <tdeapplication.h>
#else
#include <kapp.h>
#endif
#include <tdeapplication.h>
#include <tdelistview.h>
#include <kkeydialog.h>
#include <tdeconfig.h>

@ -25,11 +25,7 @@
#include <tdeversion.h>
#include <tdelocale.h>
#if TDE_VERSION_MAJOR >= 3
#include <kstandarddirs.h>
#else
#include <kstddirs.h>
#endif
#include <kstandarddirs.h>
#include <tdeglobal.h>
#include <tdefiledialog.h>
#include <tdemessagebox.h>

@ -16,7 +16,6 @@
***************************************************************************/
#include "kbswitchintf.h"
//#include <kapp.h>
KBSwitchIntf::KBSwitchIntf(TQObject *parent, KBConfig *conf)
: TQObject(parent, "KBSwitchIntf"), DCOPObject("KBSwitchIntf")

@ -25,20 +25,12 @@
#include "boldmenuitem.h"
#endif
#include <tdepopupmenu.h>
#if TDE_VERSION_MAJOR >= 3
#include <kstandarddirs.h>
#else
#include <kstddirs.h>
#endif
#include <kstandarddirs.h>
#include <tdelocale.h>
#include <kstdaction.h>
#include <tdeaction.h>
#include <tdeaboutapplication.h>
#if TDE_VERSION_MAJOR >= 3
#include <tdeapplication.h>
#else
#include <kapp.h>
#endif
#include <tdeapplication.h>
#include <kiconloader.h>
#include <kdebug.h>
#include <tdeversion.h>
@ -64,12 +56,7 @@ static TQColor getActiveTextColor(TDEPopupMenu *menu)
KBSwitchTrayIcon::KBSwitchTrayIcon(KBConfig *conf){
TQPixmap pix;
#if TDE_VERSION_MAJOR >= 3
TDEActionCollection *actions = new TDEActionCollection(this);
#define ACTION_PARENT actions
#else
#define ACTION_PARENT this
#endif
m_kbconf = conf;
//TQObject::connect(conf, TQ_SIGNAL(changed()), this, TQ_SLOT(updateMenuIcons()));
@ -78,11 +65,11 @@ KBSwitchTrayIcon::KBSwitchTrayIcon(KBConfig *conf){
TQObject::connect(menu, TQ_SIGNAL(activated(int)), this, TQ_SLOT(slotMenuActivated(int)));
menu->insertSeparator();
TDEAction *pref = KStdAction::preferences(this, TQ_SIGNAL(preferencesSelected()), ACTION_PARENT);
TDEAction *pref = KStdAction::preferences(this, TQ_SIGNAL(preferencesSelected()), actions);
pref->plug(menu);
TDEAction *help = KStdAction::help(this, TQ_SLOT(slotHelp()), ACTION_PARENT);
TDEAction *help = KStdAction::help(this, TQ_SLOT(slotHelp()), actions);
help->plug(menu);
TDEAction *about = KStdAction::aboutApp(this, TQ_SLOT(slotAbout()), ACTION_PARENT);
TDEAction *about = KStdAction::aboutApp(this, TQ_SLOT(slotAbout()), actions);
about->plug(menu);
/*TQString path = locate("icon", "hicolor/16x16/apps/locale.png");

Loading…
Cancel
Save