/*
   SPDX-FileCopyrightText: 2012 Sérgio Martins <iamsergio@gmail.com>

   SPDX-License-Identifier: LGPL-2.0-or-later
*/

#include <Akonadi/ETMCalendar>
#include <KCheckableProxyModel>

#include <QApplication>
#include <QHBoxLayout>
#include <QTreeView>

using namespace Akonadi;

int main(int argv, char **argc)
{
    QApplication app(argv, argc);

    ETMCalendar calendar;

    QWidget *window = new QWidget();
    QHBoxLayout *layout = new QHBoxLayout(window);

    QTreeView *collectionSelectionView = new QTreeView();
    collectionSelectionView->setModel(calendar.checkableProxyModel());

    QTreeView *itemView = new QTreeView();
    itemView->setModel(calendar.model());

    layout->addWidget(collectionSelectionView);
    layout->addWidget(itemView);

    window->show();

    return app.exec();
}
