Applets
main.cpp
Go to the documentation of this file.00001 /* 00002 Copyright 2007 Robert Knight <robertknight@gmail.com> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License as published by the Free Software Foundation; either 00007 version 2 of the License, or (at your option) any later version. 00008 00009 This library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Library General Public License for more details. 00013 00014 You should have received a copy of the GNU Library General Public License 00015 along with this library; see the file COPYING.LIB. If not, write to 00016 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00017 Boston, MA 02110-1301, USA. 00018 */ 00019 00020 // KDE 00021 #include <KAboutData> 00022 #include <KApplication> 00023 #include <KCmdLineArgs> 00024 00025 // Local 00026 #include "ui/launcher.h" 00027 00028 #define KICKOFF_VERSION "1.9.3" 00029 00030 int main(int argc,char** argv) 00031 { 00032 KAboutData about("kickoff",0,ki18n("Kickoff"),KICKOFF_VERSION, 00033 ki18n("Application Launcher"), 00034 KAboutData::License_GPL_V2); 00035 KCmdLineArgs::init(argc,argv,&about); 00036 00037 KApplication app; 00038 00039 Kickoff::Launcher *launcher = new Kickoff::Launcher((QWidget*)0); 00040 launcher->setWindowTitle("Kickoff KDE 4 Test Application"); 00041 // ensure launcher gets deleted when the app closes so that favorites, 00042 // recent applications etc. are saved 00043 launcher->setAttribute(Qt::WA_DeleteOnClose); 00044 launcher->show(); 00045 00046 return app.exec(); 00047 } 00048