1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- /*213:*/
- #line 36 "./licensewindow.w"
-
- /*217:*/
- #line 99 "./licensewindow.w"
-
- #include "licensewindow.h"
-
- #include <QSplitter>
- #include <QListWidget>
- #include <QVariant>
- #include <QUrl>
-
- #line 4916 "./typica.w"
-
- /*:217*/
- #line 37 "./licensewindow.w"
-
- /*214:*/
- #line 43 "./licensewindow.w"
-
- LicenseWindow::LicenseWindow()
- :QMainWindow(NULL),view(new QWebView)
- {
- QSplitter*split= new QSplitter;
- QListWidget*projects= new QListWidget;
-
- /*216:*/
- #line 79 "./licensewindow.w"
-
- QListWidgetItem*item= new QListWidgetItem("Typica",projects);
- item->setData(Qt::UserRole,QVariant(QUrl("qrc:/resources/html/licenses/typica.html")));
- projects->setCurrentItem(item);
- setWebView(item,NULL);
- item= new QListWidgetItem("d3.js",projects);
- item->setData(Qt::UserRole,QVariant(QUrl("qrc:/resources/html/licenses/d3.html")));
- item= new QListWidgetItem("Entypo",projects);
- item->setData(Qt::UserRole,QVariant(QUrl("qrc:/resources/html/licenses/entypo.html")));
- item= new QListWidgetItem("Tango Desktop Project",projects);
- item->setData(Qt::UserRole,QVariant(QUrl("qrc:/resources/html/licenses/tango.html")));
- item= new QListWidgetItem("QextSerialPort",projects);
- item->setData(Qt::UserRole,QVariant(QUrl("qrc:/resources/html/licenses/qextserialport.html")));
- item= new QListWidgetItem("qrcode-svg",projects);
- item->setData(Qt::UserRole,QVariant(QUrl("qrc:/resources/html/licenses/qrcode-svg.html")));
- item= new QListWidgetItem("Qt",projects);
- item->setData(Qt::UserRole,QVariant(QUrl("qrc:/resources/html/licenses/qt.html")));
-
- /*:216*/
- #line 50 "./licensewindow.w"
-
- connect(projects,SIGNAL(currentItemChanged(QListWidgetItem*,QListWidgetItem*)),
- this,SLOT(setWebView(QListWidgetItem*,QListWidgetItem*)));
-
- split->addWidget(projects);
- split->addWidget(view);
- setCentralWidget(split);
- }
-
- /*:214*//*215:*/
- #line 64 "./licensewindow.w"
-
- void LicenseWindow::setWebView(QListWidgetItem*current,QListWidgetItem*)
- {
- view->load(current->data(Qt::UserRole).toUrl());
- }
-
- /*:215*/
- #line 38 "./licensewindow.w"
-
-
- /*:213*/
|