Fluid Tabs

main.cpp

00001 #include <QtGui/QApplication>
00002 #include <QDeclarativeView>
00003 #include "ftabbar.h"
00004 #include "ftabarea.h"
00005 
00006 int main(int argc, char *argv[])
00007 {
00008     QApplication a(argc, argv);
00009 
00010     qsrand(time(0));
00011 
00012     qmlRegisterType<FTabBar>("Fluid", 1, 0, "FTabBar");
00013     qmlRegisterType<FTab>("Fluid", 1, 0, "FTab");
00014     qmlRegisterType<FTabArea>("Fluid", 1, 0, "FTabArea");
00015     qmlRegisterType<FTabView>("Fluid", 1, 0, "FTabView");
00016     qmlRegisterType<FTabTransition>("Fluid", 1, 0, "FTabTransition");
00017     qmlRegisterType<FTabSlideTransition>("Fluid", 1, 0, "FTabSlideTransition");
00018 
00019     QDeclarativeView view;
00020     view.setSource(QUrl("qrc:/main.qml"));
00021     view.show();
00022 
00023     return a.exec();
00024 }
 All Classes Functions Properties