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 2 weeks ago
parent bc141f6414
commit 295752d2ee
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

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

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

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

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

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

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

Loading…
Cancel
Save