kwin/kcmkwin/kwincompositing/main.cpp

55 lines
2.3 KiB
C++
Raw Normal View History

2013-06-25 14:07:48 +00:00
/**************************************************************************
* KWin - the KDE window manager *
* This file is part of the KDE project. *
* *
* Copyright (C) 2013 Antonis Tsiapaliokas <kok3rs@gmail.com> *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
**************************************************************************/
#include "model.h"
#include <QApplication>
#include <KAboutData>
2013-08-20 17:12:09 +00:00
#include <klocalizedstring.h>
2013-09-10 08:41:42 +00:00
#include <kdeclarative/kdeclarative.h>
#include <QStandardPaths>
2013-06-25 14:07:48 +00:00
int main(int argc, char *argv[])
{
KAboutData aboutData("kwincompositing", 0, i18n("KWinCompositing"),
2013-09-09 11:06:38 +00:00
"1.0", i18n("KWin Compositing"),
KAboutData::License_GPL,
2013-09-09 11:06:38 +00:00
i18n("Copyright 2013 KWin Development Team"),
"", "", "kwin@kde.org");
aboutData.addAuthor(i18n("Antonis Tsiapaliokas"),
i18n("Author and maintainer"),
"kok3rs@gmail.com");
2013-06-25 14:07:48 +00:00
QApplication app(argc, argv);
2013-09-10 08:41:42 +00:00
KDeclarative kdeclarative;
KWin::Compositing::EffectView *view = new KWin::Compositing::EffectView();
2013-09-10 08:41:42 +00:00
kdeclarative.setDeclarativeEngine(view->engine());
kdeclarative.setupBindings();
2013-06-25 14:07:48 +00:00
view->show();
return app.exec();
}