/********************************************************************/
-KAccessApp::KAccessApp(bool allowStyles, bool GUIenabled)
- : KUniqueApplication(allowStyles, GUIenabled),
+KAccessApp::KAccessApp(bool allowStyles)
+ : KUniqueApplication(allowStyles),
overlay(0), _player(0)
{
_activeWindow = KWindowSystem::activeWindow();
public:
- explicit KAccessApp(bool allowStyles=true, bool GUIenabled=true);
+ explicit KAccessApp(bool allowStyles=true);
bool x11EventFilter(XEvent *event);
add_executable(kde4-menu kde-menu.cpp)
-target_link_libraries(kde4-menu ${KDE4_KIO_LIBS})
+target_link_libraries(kde4-menu ${KDE4_KDECORE_LIBS})
install(
TARGETS kde4-menu
#include <stdlib.h>
#include <QtCore/QFile>
+#include <QtCore/QCoreApplication>
#include <QtDBus/QtDBus>
#include <kaboutdata.h>
options.add("+<application-id>", ki18n("The id of the menu entry to locate"));
KCmdLineArgs::addCmdLineOptions(options);
-// KApplication k(false, false);
- KApplication k(false);
- k.disableSessionManagement();
+ QCoreApplication app(argc, argv);
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
if (args->count() != 1)
KCmdLineArgs::addCmdLineOptions( options );
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
- bool useGUI = args->isSet( "dialog" );
-
- KApplication app( useGUI );
QList<FileProps *> m_props;
}
if ( args->isSet( "dialog" ) ) {
+ KApplication app;
showPropertiesDialog( args );
return 0;
}
KAboutData about("kio_thumbnail", 0, ki18n("kio_thumbmail"), "KDE 4.x.x");
KCmdLineArgs::init(&about);
- KApplication app( true);
+ KApplication app;
#endif
if( dpy != NULL && DefaultDepth(dpy, DefaultScreen(dpy)) >= 24) // 16bpp breaks the software logout effect for some reason???
a = new KApplication(dpy, visual ? Qt::HANDLE(visual) : 0, colormap ? Qt::HANDLE(colormap) : 0);
else
- a = new KApplication(true);
+ a = new KApplication();
fcntl(ConnectionNumber(QX11Info::display()), F_SETFD, 1);
a->setQuitOnLastWindowClosed(false); // #169486
add_executable(ktraderclient ktraderclient.cpp)
-target_link_libraries(ktraderclient ${KDE4_KIO_LIBS})
+target_link_libraries(ktraderclient ${KDE4_KDECORE_LIBS})
install(TARGETS ktraderclient ${INSTALL_TARGETS_DEFAULT_ARGS} )
#include <kcmdlineargs.h>
#include <kmimetypetrader.h>
#include <kmimetype.h>
-#include <kapplication.h>
#include <klocale.h>
#include <kservicetypetrader.h>
+#include <QCoreApplication>
#include <stdio.h>
KCmdLineArgs::addCmdLineOptions( options );
- KApplication app( false ); // no GUI
+ QCoreApplication app( argc, argv ); // no GUI
KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
#include <KDesktopFile>
#include <KDebug>
#include <KConfigGroup>
+#include <QCoreApplication>
#include "SolidActionData.h"
aboutData.addAuthor(ki18n("Ben Cooksley"), ki18n("Maintainer"), "ben@eclipse.endoftheinternet.org");
KCmdLineArgs::init(argc, argv, &aboutData);
- KApplication application(false);
+ QCoreApplication application(argc, argv);
SolidActionData * availActions = SolidActionData::instance();
foreach( Solid::DeviceInterface::Type internalType, availActions->interfaceTypeList() ) {
QString typeName = Solid::DeviceInterface::typeToString( internalType );