mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
removing commented out old implementation.
This commit is contained in:
parent
fbee3c1782
commit
a9de502e76
1 changed files with 0 additions and 65 deletions
|
@ -85,68 +85,3 @@ void InfoView::setUrl(const QUrl& url) {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
//#include <QApplication>
|
||||
//#include <QDesktopWidget>
|
||||
//#include <QDesktopServices>
|
||||
//#include <QFileInfo>
|
||||
//#include <QtWebKitWidgets/QWebFrame>
|
||||
//#include <QtWebKit/QWebElement>
|
||||
//
|
||||
//#include <PathUtils.h>
|
||||
//#include <SettingHandle.h>
|
||||
//
|
||||
//#include "InfoView.h"
|
||||
//
|
||||
//static const float MAX_DIALOG_HEIGHT_RATIO = 0.9f;
|
||||
//
|
||||
//
|
||||
//
|
||||
//InfoView::InfoView(bool forced, QString path) : _forced(forced)
|
||||
//{
|
||||
// setWindowFlags(Qt::WindowStaysOnTopHint | Qt::CustomizeWindowHint | Qt::WindowCloseButtonHint);
|
||||
//
|
||||
// QString absPath = QFileInfo(PathUtils::resourcesPath() + path).absoluteFilePath();
|
||||
// QUrl url = QUrl::fromLocalFile(absPath);
|
||||
//
|
||||
// page()->setLinkDelegationPolicy(QWebPage::DelegateExternalLinks);
|
||||
// connect(this, SIGNAL(linkClicked(QUrl)), this, SLOT(linkClickedInfoView(QUrl)));
|
||||
//
|
||||
// load(url);
|
||||
// connect(this, SIGNAL(loadFinished(bool)), this, SLOT(loaded(bool)));
|
||||
//}
|
||||
//
|
||||
//void InfoView::showFirstTime(QString path) {
|
||||
// new InfoView(false, path);
|
||||
//}
|
||||
//
|
||||
//void InfoView::forcedShow(QString path) {
|
||||
// new InfoView(true, path);
|
||||
//}
|
||||
//
|
||||
//
|
||||
//void InfoView::loaded(bool ok) {
|
||||
// if (!ok || !shouldShow()) {
|
||||
// deleteLater();
|
||||
// return;
|
||||
// }
|
||||
//
|
||||
// QDesktopWidget* desktop = qApp->desktop();
|
||||
// QWebFrame* mainFrame = page()->mainFrame();
|
||||
//
|
||||
// int height = mainFrame->contentsSize().height() > desktop->height() ?
|
||||
// desktop->height() * MAX_DIALOG_HEIGHT_RATIO :
|
||||
// mainFrame->contentsSize().height();
|
||||
//
|
||||
// resize(mainFrame->contentsSize().width(), height);
|
||||
// move(desktop->screen()->rect().center() - rect().center());
|
||||
// setWindowTitle(title());
|
||||
// setAttribute(Qt::WA_DeleteOnClose);
|
||||
// show();
|
||||
//}
|
||||
//
|
||||
//void InfoView::linkClickedInfoView(QUrl url) {
|
||||
// close();
|
||||
// QDesktopServices::openUrl(url);
|
||||
//}
|
||||
//#endif
|
Loading…
Reference in a new issue